in reply to Re^2: regex match unicode characters in ascii string
in thread regex match unicode characters in ascii string

Hi 3dbc,

replace the extended ascii character with a space
$string =~ tr/\x09\x0A\x0D\x20-\x7E/ /c;

See the documentation of tr/SEARCHLIST/REPLACEMENTLIST/cdsr under "Quote-Like Operators" in perlop.

Hope this helps,
-- Hauke D