[issue30838] re \w does not match some valid Unicode characters

Matthew Barnett report at bugs.python.org
Wed Jul 5 13:22:30 EDT 2017


Matthew Barnett added the comment:

Python identifiers match the regex:

    [_\p{XID_Start}]\p{XID_Continue}*

The standard re module doesn't support \p{...}, but the third-party "regex" module does.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30838>
_______________________________________


More information about the Python-bugs-list mailing list