Escapes special characters in a string to be used in a regular expression.
The input string to escape.
The escaped string.
const input = 'Hello, world!';regexEscapeString(input);;//=> 'Hello, world!' Copy
const input = 'Hello, world!';regexEscapeString(input);;//=> 'Hello, world!'
Generated using TypeDoc
Escapes special characters in a string to be used in a regular expression.