What about a character range? And if you want to delete those characters, you also can use tr///.
$myline =~ tr/\x80-\xff//d;
or if you want to stick to s///.
$myline =~ s/[\x80-\xff]/ /g;
In reply to Re: Excluding non ascii characters
by linuxer
in thread Excluding non ascii characters
by millsperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |