Simplify pre-parsing of regexes