We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c42a4ad commit cfa78ecCopy full SHA for cfa78ec
Doc/library/re.rst
@@ -589,10 +589,9 @@ character ``'$'``.
589
590
``\w``
591
For Unicode (str) patterns:
592
- Matches Unicode word characters; this includes most characters
593
- that can be part of a word in any language, as well as numbers and
594
- the underscore. If the :const:`ASCII` flag is used, only
595
- ``[a-zA-Z0-9_]`` is matched.
+ Matches Unicode word characters; this includes alphanumeric characters (as defined by :meth:`str.isalnum`)
+ as well as the underscore (``_``).
+ If the :const:`ASCII` flag is used, only ``[a-zA-Z0-9_]`` is matched.
596
597
For 8-bit (bytes) patterns:
598
Matches characters considered alphanumeric in the ASCII character set;
0 commit comments