Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: Regexp not capturing in named subrules (first)by tye (Sage) |
on Sep 16, 2009 at 17:20 UTC ( [id://795671]=note: print w/replies, xml ) | Need Help?? |
For clarity, the regex expands to the equivalent of:
So, yes, (?<thing>.+) did match. It is just that the first instance didn't match. In Perl, %+ only records the captures of the first instance. - tye
In Section
Seekers of Perl Wisdom
|
|