That doesn't really do what the original poster asked for tho' does it? Ascii characters are those with a character code between 0 and 128. Your code only checks for character codes between 33 and 126 (plus a few whitespace characters).
To match _all_ non-ascii characters you really need something like:
/[^\x00-\x7f]/
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^2: Regular expression
by davorg
in thread regular Expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |