Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to new RegExp().
new RegExp()
The string to escape
An version of the string with all special regex characters escaped
Generated using TypeDoc
Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to
new RegExp()
.