How to check...

Scott David Daniels scott.daniels at acm.org
Sun Feb 12 13:06:43 EST 2006


Lad wrote:
> Hello,
> How can I  check that a string does NOT contain NON English characters?
> Thanks
> L.
> 
If all you care about is ASCII vs. non-ASCII, you could use:
     ord(max(string)) < 128

-- 
-Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list