On Fri, Nov 16, 2001 at 11:39:27PM -0500, Keith C. Ivey wrote: > Michael G Schwern <[EMAIL PROTECTED]> wrote: > > > You actually want [[:print:]]. It's negation is [[:cntrl:]]. > > [[:cntrl:]] matches only bytes with values of 0 through 31. > [[:print:]] matches, as you say, 31 to 126. [[:^print:]], > which is the negation of [[:print:]] (and can also be written > as [^[:print:]]) matches 0 through 31 and 126 through 255.
Hmmm, there seems to be a little problem: $ perl -wle 'print "\n" =~ /[[:cntrl:]]/ ? "Yep" : "Nope"' Yep $ perl -wle 'print "\n" =~ /[[:print:]]/ ? "Yep" : "Nope"' Yep $ perl -Mutf8 -wle 'print "\n" =~ /[[:print:]]/ ? "Yep" : "Nope"' Nope -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Jesus hates me. http://www.unamerican.com/
