in reply to testing if a string is ascii
No, that isn't enough. Go the other direction, negating the list of things that are what you want:
$str !~ /[^\0-\x7f]/
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: testing if a string is ascii (^)
by Neutron Jack (Pilgrim) on Sep 04, 2006 at 06:22 UTC | |
|
Re^2: testing if a string is ascii (^)
by graff (Chancellor) on Sep 04, 2006 at 15:41 UTC |