Page MenuHomePhabricator

Add support of special escapes for matching sub-expressions in 'Replace with' at Search&Replace windows
Closed, ResolvedPublic

Description

Author: p.selitskas

Description:
The RegExp engine of JavaScript supports substitution of matching sub-expressions given in parentheses. And Search&Replace interface supports sub-expressions in 'Search for' field as well. But the 'Replace with' field doesn't support any escape sequences to substitute matching sub-expressions back to the resulting output. Those are %1,%2 (like in JS), \1,\2 (like in sed), etc.

Implementing escape sequences for this stuff would be great.


Version: unspecified
Severity: enhancement

Details

Reference
bz24526

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:05 PM
bzimport set Reference to bz24526.
  • This bug has been marked as a duplicate of bug 24326 ***