[docs] error in regular expression howto.

Jonas Frey jonas743 at gmail.com
Thu Jun 21 14:41:40 CEST 2012


Hi,

i think i found a little error in the regular expression howto
(http://docs.python.org/py3k/howto/regex.html).

Concerning \w, the howto states:

\w
    Matches any alphanumeric character; this is equivalent to the
class [a-zA-Z0-9_].

However, \w is *not* equivalent to [a-zA-Z0-9_].
For example, the latter does not accept letterw with accents àéîü,
whereas the former does.

Jonas


More information about the docs mailing list