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>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy