XP is just a number | |
PerlMonks |
Re^3: what means this regex? $x = qr/[0-9a-f]{4|8}/by Zaxo (Archbishop) |
on Jun 09, 2006 at 14:47 UTC ( [id://554511]=note: print w/replies, xml ) | Need Help?? |
If alternation worked in quantifiers, you'd want to put the eight first. The regex engine may be greedy, but it's also hasty. As soon as it matches an alternate it forgets about the remaining ones. Anything that would match the eight has already matched the four. Translating to the intended regex,
After Compline,
In Section
Seekers of Perl Wisdom
|
|