tracker issue : CF-4097633

select a category, or use search below
(searches all categories and all time range)
Title:

no function for escaping regex backreferences

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 12/08/2015

Components: Language

Versions: 10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Final /

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Win All

Vote Count: 2

Problem Description:

A new function is needed for escaping backreferences for reReplace()

Steps to Reproduce:

rereplace('/files/foo.txt', '^/files', 'd:\user\1\files');

Actual Result: 'd:Ser\files/foo.txt'

Expected Result:'d:\user\files/foo.txt'

Any Workarounds:  Manually escape 'd:\user\files' with 'd:\\user\\1\files'

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4097633

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: Henry Ho
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Just noting that rereplace('/files/foo.txt', '^/files', reEscape('d:\user\1\files')) returns d:\user\1\\files/foo.txt (which also doesn't match the expected result in the description) Thanks!, -Aaron
Comment by External U.
5131 | January 05, 2016 03:01:46 AM GMT
+1 ......................
Vote by External U.
5133 | January 05, 2016 03:02:13 AM GMT
+1
Vote by External U.
5134 | January 05, 2016 04:51:27 AM GMT
This is marked "to fix". For CF2016, yes?
Comment by External U.
5132 | January 05, 2016 04:52:13 AM GMT