Issues

Select view

Select search mode

 

reEscape function is not implemented

Fixed

Description

The reEscape function is not implemented. Included in CF10+ http://cfdocs.org/reescape

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 5 April 2016 at 20:07
Updated 14 March 2025 at 14:45
Resolved 14 March 2025 at 14:45

Activity

Show:

Pothys - MitrahSoft14 March 2025 at 14:45

Thanks for the feedback! as per your response, the difference in space escaping between Lucee and ACF doesn't affect functionality, as spaces aren't special characters in regular expressions. So, I'll close the ticket.

Ben Nadel19 February 2025 at 12:03

since “space literal” isn’t a special character on it’s own; and `\ ` isn’t a special sequence; there shouldn’t be any functional difference that I can think of.

Zac Spitzer19 February 2025 at 09:24

I think functionally it makes no difference? What do you reckon Mr Regex!

Pothys - MitrahSoft18 February 2025 at 13:11
Edited

, I have tested this ticket with Lucee version 6.2.1.25-SNAPSHOT. When I executed the reEscape() function, it now returns the string with escape characters for all regular expression special characters. However, when comparing it with ACF, there is a slight difference: in Lucee, spaces are also escaped, while in ACF, spaces are not treated as special characters and are not escaped

Return:
Lucee --- Hello\.\ How\ are\ you\?\ \(test\)\ \[123\]\ \{abc\}\ \^\$\.\*\+\?\|\\

ACF ----- Hello\. How are you\? \(test\) \[123\] \{abc\} \^\$\.\*\+\?\|\\

Zac Spitzer11 February 2025 at 12:32

Flag notifications