How To Check For [a-z] In String?

Christopher Koppler klapotec at chello.at
Thu Oct 2 12:27:25 EDT 2003


On Thu, 02 Oct 2003 16:13:59 GMT, myself <klapotec at chello.at> wrote:


> which is also unicode-ready, since
>string.(lower|upper)case also contain accented and other characters.

Ouch, I take it back (the unicode thing), it's just all the
lower/uppercase letters from the latin-1 set, but not in unicode...

Also, if you want to check for ONLY [a-z], you can check for
string.lowercase[0:26]...



hasty, hasty, hasty...


--
Christopher




More information about the Python-list mailing list