Perl: the Markov chain saw | |
PerlMonks |
Re: Finding match offsets of named captures in 5.10 regexby LanX (Saint) |
on Jan 30, 2013 at 09:30 UTC ( [id://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
|
|