Last modified: 2014-01-03 16:21:32 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 T61506, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59506 - DRTRIGON-114 Support for named groups in regexs
DRTRIGON-114 Support for named groups in regexs
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
DrTrigonBot - General (Other open bugs)
unspecified
All All
: Unprioritized critical
: ---
Assigned To: Bugzilla Bug Importer (valhallasw)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-03 16:21 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 16:21 UTC (History)
0 users

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


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 16:21:24 UTC
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.
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:21:25 UTC
-------------------------------------------------------------------------------
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!!!
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:21:27 UTC
-------------------------------------------------------------------------------
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)...
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:21:29 UTC
-------------------------------------------------------------------------------
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
Comment 4 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:21:30 UTC
-------------------------------------------------------------------------------
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.
Comment 5 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:21:32 UTC
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

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


Navigation
Links