https://bugzilla.wikimedia.org/show_bug.cgi?id=24526
Summary: Add support of special escapes for matching sub-expressions in 'Replace with' at Search&Replace windows Product: MediaWiki extensions Version: any Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Normal Component: UsabilityInitiative AssignedTo: tpars...@wikimedia.org ReportedBy: wizard...@ya.ru CC: roan.katt...@gmail.com, ngau...@wikimedia.org, amil...@wikimedia.org 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. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l