Regexps simplification