We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e38a525 commit b81d1c3Copy full SHA for b81d1c3
Doc/library/re.rst
@@ -526,10 +526,9 @@ character ``'$'``.
526
527
``\w``
528
For Unicode (str) patterns:
529
- Matches Unicode word characters; this includes most characters
530
- that can be part of a word in any language, as well as numbers and
531
- the underscore. If the :const:`ASCII` flag is used, only
532
- ``[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.
533
534
For 8-bit (bytes) patterns:
535
Matches characters considered alphanumeric in the ASCII character set;
0 commit comments