Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
When using ReplaceText in Regex Replace mode, $'s may be incorrectly interrupted as a backreference and escaped. Given input
'ma$tt'
and the following ReplaceText configuration:
Search Value - (?s)(^.*$) Replacement Value - ${'$1'} Character Set - UTF-8 Maximum Buffer Size - 1 MB Replacement Strategy - Regex Replace Evaluation Mode - Entire text
The resulting output is
'ma\$tt'
The issue appears to be that this regular expression is too general [1]. This happens when the replacement string uses expression language. It appears as though all backreferences will be escaped.
Attachments
Issue Links
- links to