Skip to content

Commit 43571a3

Browse files
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent b275267 commit 43571a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/regex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ is the same as ``[a-c]``, which uses a range to express the same set of
8989
characters. If you wanted to match only lowercase letters, your RE would be
9090
``[a-z]``.
9191

92-
Metacharacters are not active inside classes. For example, ``[akm$]`` will
92+
Metacharacters (except ``\``) are not active inside classes. For example, ``[akm$]`` will
9393
match any of the characters ``'a'``, ``'k'``, ``'m'``, or ``'$'``; ``'$'`` is
9494
usually a metacharacter, but inside a character class it's stripped of its
9595
special nature.

0 commit comments

Comments
 (0)