Last modified: 2010-07-29 20:33:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26526, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24526 - Add support of special escapes for matching sub-expressions in 'Replace with' at Search&Replace windows
Add support of special escapes for matching sub-expressions in 'Replace with'...
Status: RESOLVED DUPLICATE of bug 24326
Product: MediaWiki extensions
Classification: Unclassified
UsabilityInitiative (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-24 13:39 UTC by Pavel Selitskas [wizardist]
Modified: 2010-07-29 20:33 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pavel Selitskas [wizardist] 2010-07-24 13:39:52 UTC
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.
Comment 1 db [inactive,noenotif] 2010-07-29 20:33:01 UTC

*** This bug has been marked as a duplicate of bug 24326 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links