We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 797edb2 commit 36a0b1dCopy full SHA for 36a0b1d
Doc/library/re.rst
@@ -591,10 +591,9 @@ character ``'$'``.
591
592
``\w``
593
For Unicode (str) patterns:
594
- Matches Unicode word characters; this includes most characters
595
- that can be part of a word in any language, as well as numbers and
596
- the underscore. If the :const:`ASCII` flag is used, only
597
- ``[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.
598
599
For 8-bit (bytes) patterns:
600
Matches characters considered alphanumeric in the ASCII character set;
0 commit comments