cfdocs

reEscape

Escapes regular expression control characters within a string.

reEscape(string);
returns string

Argument Reference

Name Type Required Default Description
string string Yes   The string you that to escape.

Example of reEscape

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

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