jamadden / mrab-regex-hg

Automatically exported from code.google.com/p/mrab-regex-hg
0 stars 2 forks source link

support for captures() in expandf() #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am doing a capture of repeating groups, for eventual substitution, and need 
the ability to reference specific captured values in substitutions and 
expansions (ie, expand/expandf).

Ideally, the format of the match expansion would be enhanced to differentiate 
between groups and captures, and within captures, specify an index, perhaps 
with a dot notation: Ie, {1.2} would match the second match of the first 
capture group.

Original issue reported on code.google.com by jesuswas...@gmail.com on 29 Dec 2014 at 9:33

GoogleCodeExporter commented 9 years ago
Can you give me an example of your use-case?

Original comment by re...@mrabarnett.plus.com on 30 Dec 2014 at 12:23

GoogleCodeExporter commented 9 years ago
Added in regex 2015.03.18.

Original comment by re...@mrabarnett.plus.com on 18 Mar 2015 at 6:19