Whatever message this page gives is out now! Go check it out!

ReEscape

Last update:
May 18, 2026

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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page