in reply to Re: testing if a string is ascii
in thread testing if a string is ascii
| Hi, Assuming your string is in $str, try this: if ($str =~ /^!-~\s/g){print "Non-ASCII character found"} This will check for any other character apart from ASCII character. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: testing if a string is ascii
by rsriram (Hermit) on Sep 04, 2006 at 10:09 UTC |