Move regular expressions to 'Grammar' namespace