I googled and could only find this SO discussion match-positions-of-named-capture-groups-in-perls-regexps but poor Felix didn't get a proper answer.
Though I slightly remember we already had this discussion here...
(something like finding the index of a named capture and accessing @+ / @- probably? Hint: %- doesn't help here)
I tried to look into Tie::Hash::NamedCapture , the "Pragmatic Module" used to implement %+ and %- but stopped at the XS barrier
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to [RE] match positions of named captures? by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |