Add regular expressions to code