Opened 10 years ago

Closed 10 years ago

#4146 closed enhancement (fixed)

Allow unnamed capture groups in regex and urlg

Reported by: ComaVN Owned by: ComaVN
Priority: normal Component: RegexLinkPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11


Allow unnamed capture groups to be used in the regex and replacement url. All regexes used by trac and plugins for wiki-formatting are put into one big regex, meaning the numbering of unnamed groups is unpredictable.

It should be possible to use unnamed capture groups in the regex:


that can then be used for replacement in the url:\1

or, when the replacement is followed by a digit:\g<1>0

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by ComaVN

Status: newassigned

comment:2 Changed 10 years ago by ComaVN

Resolution: fixed
Status: assignedclosed

(In [4867]) added test for unnamed groups (seems to work already?) closes #4146

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain ComaVN.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.