summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-05 03:11:36 (GMT)
committerGitHub <noreply@github.com>2022-04-05 03:11:36 (GMT)
commit31c9e35e5360ba91fc6b81b23eb21dd3c39e2257 (patch)
treea5ee95da466ce3d03bab502f29f3cb2f71ba1b5a /Doc/howto
parentc0063bdc7b5fed98c6799f3da0a954a775e3d89e (diff)
downloadcpython-31c9e35e5360ba91fc6b81b23eb21dd3c39e2257.zip
cpython-31c9e35e5360ba91fc6b81b23eb21dd3c39e2257.tar.gz
cpython-31c9e35e5360ba91fc6b81b23eb21dd3c39e2257.tar.bz2
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 43571a3eea8b5931769376daf4bdad1c9184ae0d) Co-authored-by: Mike cm <mikecmcleod@gmail.com>
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/regex.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst
index d574c37..c4ebbd3 100644
--- a/Doc/howto/regex.rst
+++ b/Doc/howto/regex.rst
@@ -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.