You can see below the API reference of this module.
Escapes a string for using it in a regular expression.
- String
input
: The string that must be escaped.
- String The escaped string.
Adds the RegexEscape
function to RegExp
class.
- Function The
RegexEscape
function.