in reply to what means this regex? $x = qr/[0-9a-f]{4|8}/
Regarding
this is a nice idea, but doesn't do anything special. a curly bracket is only a special character when it is found in one of these forms {n}, {n,} or {n,m}.{4|8}
As your example isn't like this, the bracket is just matched as a plain character. What your first regex shows is just an alternation, equivalent to the following...
Note that I've escaped the curly bracket just to be explict, it's not actually necessaryif (/[0-9a-f]\{4/ or /8\}/} { print "matched\n"; }
---
my name's not Keith, and I'm not reasonable.
my name's not Keith, and I'm not reasonable.
|
---|
In Section
Seekers of Perl Wisdom