fix StrMatch for regexps containing slashes