Description

Takes a string and escapes characters that match regular expression control characters.

Returns

String appended with the escape characters

History

ColdFusion 10: Added this function

Syntax

reEscape(string____)

Properties

Parameter

Description

string

The string in which you have to escape characters that match regular expression characters.

Example

<cfoutput> 
#reescape("*.{}[]exam?ple")# 
</cfoutput>