summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorMike cm <mikecmcleod@gmail.com>2022-04-05 02:46:54 (GMT)
committerGitHub <noreply@github.com>2022-04-05 02:46:54 (GMT)
commit43571a3eea8b5931769376daf4bdad1c9184ae0d (patch)
tree2326554ae0928f245bc0f51137f24c2ea398320a /Doc/howto
parentb275267aa7d44ec90fa435c9cb1610c549da745a (diff)
downloadcpython-43571a3eea8b5931769376daf4bdad1c9184ae0d.zip
cpython-43571a3eea8b5931769376daf4bdad1c9184ae0d.tar.gz
cpython-43571a3eea8b5931769376daf4bdad1c9184ae0d.tar.bz2
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@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 33dca2f..c4eed8f 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.