]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
authorMike cm <mikecmcleod@gmail.com>
Tue, 5 Apr 2022 02:46:54 +0000 (03:46 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Apr 2022 02:46:54 +0000 (19:46 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/howto/regex.rst

index 33dca2fc41f9da1f33eaaac49df2173cebc1d22b..c4eed8fb1fbe7226f13e823456728ddf193e233e 100644 (file)
@@ -89,7 +89,7 @@ is the same as ``[a-c]``, which uses a range to express the same set of
 characters.  If you wanted to match only lowercase letters, your RE would be
 ``[a-z]``.
 
-Metacharacters are not active inside classes.  For example, ``[akm$]`` will
+Metacharacters (except ``\``) are not active inside classes.  For example, ``[akm$]`` will
 match any of the characters ``'a'``, ``'k'``, ``'m'``, or ``'$'``; ``'$'`` is
 usually a metacharacter, but inside a character class it's stripped of its
 special nature.