switch to pcre posix regex