Fixed some regular expressions to identify code usage