It's not easily possible to associate capture-name to capture-index. We had this recently.
Consider another concept!
But if you just want to know how to access the match for a name use %+
see perlretut: Outside of the pattern a named capture group is accessible through the %+ hash.
Cheers Rolf
In reply to Re: Retrieving Regex matched Group name
by LanX
in thread Retrieving Regex matched Group name
by Samman_Mahmoud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |