See. perlre for more info.my $cc = qr/^[^A\s]+$/; print "foo" =~ $cc ? "yep" : "nope"; print "foA" =~ $cc ? "yep" : "nope"; print "fo " =~ $cc ? "yep" : "nope"; __output__ yep nope nope
_________
broquaint
In reply to Re: Mixing builtin char-classes and negation
by broquaint
in thread Mixing builtin char-classes and negation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |