]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Apr 2022 03:11:36 +0000 (20:11 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Apr 2022 03:11:36 +0000 (20:11 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 43571a3eea8b5931769376daf4bdad1c9184ae0d)

Co-authored-by: Mike cm <mikecmcleod@gmail.com>
Doc/howto/regex.rst

index d574c3736b1cb78348dade8e1cd36f613d6789f7..c4ebbd311e0fe36467e4636414b4468ffe236172 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.