in reply to Mixing builtin char-classes and negation
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
|
|---|