ReEscape

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>
Adobe logo

Sign in to your account

[Feedback V2 Badge]