in reply to Excluding non ascii characters
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Excluding non ascii characters
by ikegami (Patriarch) on Apr 06, 2009 at 19:32 UTC |