use correct form of regex string for RegExp()

IS [#44317763]

When using the RexExp() function the string arg should
*not* have the enclosing "/" characters used to define
a regex expression in-line …

*And* '\' chars must be escaped twice, once in the regex
itself and a second time because of the string parsing.