in reply to what means this regex? $x = qr/[0-9a-f]{4|8}/
Did you expect to get bitwise-or evaluated to match twelve characters? Or did you expect regex alternation to get it to match exactly four or exactly eight?
I think the regex engine gave up on compiling a quantifier when it hit incompatible syntax. That would leave the braces as literal.
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: what means this regex? $x = qr/[0-9a-f]{4|8}/
by kidongrok (Acolyte) on Jun 09, 2006 at 14:32 UTC | |
by Zaxo (Archbishop) on Jun 09, 2006 at 14:47 UTC |
In Section
Seekers of Perl Wisdom