Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfa78ec

Browse files
miss-islingtonslatenyJelleZijlstra
authored
gh-69929: re docs: Add more specific definition of \w (GH-92015)
(cherry picked from commit36a0b1d)Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parentc42a4ad commitcfa78ec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎Doc/library/re.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,9 @@ character ``'$'``.
589589

590590
``\w``
591591
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.
592+
Matches Unicode word characters; this includes alphanumeric characters (as defined by:meth:`str.isalnum`)
593+
as well as the underscore (``_``).
594+
If the:const:`ASCII` flag is used, only ``[a-zA-Z0-9_]`` is matched.
596595

597596
For 8-bit (bytes) patterns:
598597
Matches characters considered alphanumeric in the ASCII character set;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp