|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Finding match offsets of named captures in 5.10 regexby LanX (Monsignor) |
| on Jan 30, 2013 at 09:30 UTC ( #1016008=note: print w/ replies, xml ) | Need Help?? |
|
> The following code maps names to numbers if the regex contains only named captures but falls apart if there are named ones too. > @n{re::regnames(1)} = (1 .. $#+); No sorry thats wrong, the names come in the wrong order.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||