Handle more escaped characters in regexps