|Syntactic Confectionery Delight|
Re^2: Is there really no @LAST_MATCH_START equivalent for named capture groups?by LanX (Bishop)
|on Jan 30, 2013 at 10:51 UTC||Need Help??|
> Otherwise you could use one of the RegEx parsing modules on the regex to associate name to index.
It's a hack but it gives you a hash mapping each name to it's index:
(see Dynamically inspecting Regex OP-Codes at runtime? for an explanation)
Careful: ATM this can't handle repeated names properly, for this you need to adjust the reverse part.
corrected typo in code