Page MenuHomePhabricator

DRTRIGON-114 Support for named groups in regexs
Closed, ResolvedPublic

Description

This issue was converted from https://jira.toolserver.org/browse/DRTRIGON-114.
Summary: Support for named groups in regexs
Issue type: New Feature - A new feature of the product, which has yet to be developed.
Priority: Critical
Status: Closed
Assignee: drtrigon <dr.trigon@surfeu.ch>


From: drtrigon <dr.trigon@surfeu.ch>

Date: Sat, 04 Feb 2012 17:23:32

Enable the usage of named groups '(?P<name>...)' in regex and combine them with '%(name)s' syntax.


Version: unspecified
Severity: critical

Details

Reference
bz59506

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:35 AM
bzimport set Reference to bz59506.

From: drtrigon <dr.trigon@surfeu.ch>

Date: Fri, 17 Feb 2012 01:05:07

Named group can be used for <del>DRTRIGON-110</del> also.

Named groups can further be used in 'regex', coupled to 'value' (like multiple BS tags on 1 page) and could become a complete revolution. May be this gives a new mode again and remove completely the need of some postproc usages... Has a lot of potential!!!


From: drtrigon <dr.trigon@surfeu.ch>

Date: Fri, 17 Feb 2012 01:07:29

Mainly in 'postproc' regex, but later also in 'regex' (or else)...


From: drtrigon <dr.trigon@surfeu.ch>

Date: Wed, 22 Feb 2012 21:11:58

Look also at 'replacetext' using 'sub' and thus supporting named groups like:

('replacetext', '(?P<url>http://(ur1.ca\x7Cbit.ly)\S*)', '\x3Cnowiki\x3E\g<url>\x3C/nowiki\x3E')

http://de.wikipedia.org/w/index.php?title=Benutzer:DrTrigon/Spielwiese&oldid=100014206#Test:_19:23.2C_22._Feb._2012_.28CET.29


From: drtrigon <dr.trigon@surfeu.ch>

Date: Fri, 22 Jun 2012 12:40:24

Implemented in r341.

For examples confer http://de.wikipedia.org/w/index.php?title=Benutzer:DrTrigon/Spielwiese&oldid=104677569 and following edits/changes.

New postproc are written and will be enabled too.

This bug was imported as RESOLVED. The original assignee has therefore not been
set, and the original reporters/responders have not been added as CC, to
prevent bugspam.

If you re-open this bug, please consider adding these people to the CC list:
Original assignee: dr.trigon@surfeu.ch
CC list: dr.trigon@surfeu.ch