Also ASCII covers only the bytes from 0 to 127, so your regex should read
$string =~ m/[\x00-\x7f]/
In reply to Re: How to determine if string contains non-ASCII characters ?
by moritz
in thread How to determine if string contains non-ASCII characters ?
by roadrunner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |