Skip to content

regexEscape

regexEscape(str): string

Defined in: utils/index.ts:22

Escapes all regex syntax characters with a backslash and returns the escaped string.

The returned string is not safe inside a character class.

string

string