[Python-Dev] String module
Guido van Rossum
Fri, 31 May 2002 09:39:18 -0400
> the SRE engine already supports character classes based on
> ASCII, the current locale (via ctype.h), and the Unicode char-
How do I ask for a locale letter? The re module only defines escapes
for "word" and "digit".
> we should probably add more classes -- at least the full list of
> POSIX [:name:] classes, and probably also unicode categories.
> fwiw, I've played with adding "charset" objects to SRE, which
> would allow you to plug in custom [:spam:] sets as well (e.g.
> xml name chars).
--Guido van Rossum (home page: http://www.python.org/~guido/)