Your skill will accomplish what the force of many cannot |
|
PerlMonks |
what means this regex? $x = qr/[0-9a-f]{4|8}/by kidongrok (Acolyte) |
on Jun 09, 2006 at 08:16 UTC ( [id://554443]=perlquestion: print w/replies, xml ) | Need Help?? |
kidongrok has asked for the wisdom of the Perl Monks concerning the following question:
NB-the display is eating the [] square brackets up there.
lots can follow from this:
thats not what I expected, wouldnt you tacitly expect perl to do something similar to what it does with {4,8} there ? or is that ambiguous ? given the availability of \, which is needed to get literal reading of []() chars, whats the harm ? (He baits the hook, chum the water... Dont we have some regex-monsters lurking here ? Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
Back to
Seekers of Perl Wisdom
|
|