Function escapeRE

Source
escapeRE(str: string): string

Escapes regular expression metacharacters in a string.