in reply to Finding out non ASCII Characters in the text
Hi rsriram,
Here is one way to do it.
$str = 'a[bdy]dfjaPÑsdafÜ'; while ($str =~ /[^!-~\s]/g) { print "Non ASCII Characater:\t$&\n"; } Another way: while ($str =~ /[^[:print:]]/g) { print "Non Printable Characater:\t$&\n"; }
If you would have super searched, you would have got detecting non-ascii chars in a string, Getting rid of non-standard ASCII characters and more similar nodes.
Prasad
|
|---|