reEscape

Escapes regular expression control characters within a string.

reEscape(string); → returns string

reEscape Argument Reference

string
Required

The string you that to escape.

Examples sample code invoking the reEscape function


Example of reEscape

reEscape('*.{}[]exam?ple')

Expected Result: \*\.\{\}\[\]exam\?ple


Fork me on GitHub