XP is just a number | |
PerlMonks |
Re^2: mysteries of regex substring matchingby LanX (Saint) |
on Jan 15, 2021 at 22:53 UTC ( [id://11126982]=note: print w/replies, xml ) | Need Help?? |
> reading the last capture with embedded Perl code like /(....(?{print $1})){4}/ demo: (using /x for clarification)
updateI think this explains your "mystery", they all match but only the last one is kept in $1.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|