Fixed unescaped and ambiguous characters in regexps