in reply to How to determine if string contains non-ASCII characters ?
Also ASCII covers only the bytes from 0 to 127, so your regex should read
$string =~ m/[\x00-\x7f]/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to determine if string contains non-ASCII characters ?
by jethro (Monsignor) on Aug 19, 2009 at 17:08 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 17:22 UTC | |
by roadrunner (Acolyte) on Aug 19, 2009 at 17:25 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 17:54 UTC | |
by moritz (Cardinal) on Aug 19, 2009 at 17:30 UTC | |
by roadrunner (Acolyte) on Aug 19, 2009 at 17:38 UTC |