Escapes the RegExp special characters "^", "$", "", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", and "|" in string.
RegExp
string
escapeRegExp('[test](utils)'); // => '\[test\]\(utils\)'
The string to escape.
Returns the escaped string.
Generated using TypeDoc
Escapes the
RegExp
special characters "^", "$", "", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", and "|" instring
.