Simplify regexps