simplification of regexps without POSIX preserve