simplify regexes