diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-04-05 03:08:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 03:08:17 (GMT) |
commit | d95e072c419e40b0fb67b8cc8a84087c8a0276ee (patch) | |
tree | 0d243d3f684c2f76e54f39d74230d4274a3e537f | |
parent | f4e711bb49881deb1f07a685878646cd5cdee50f (diff) | |
download | cpython-d95e072c419e40b0fb67b8cc8a84087c8a0276ee.zip cpython-d95e072c419e40b0fb67b8cc8a84087c8a0276ee.tar.gz cpython-d95e072c419e40b0fb67b8cc8a84087c8a0276ee.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>
-rw-r--r-- | Doc/howto/regex.rst | 2 |
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. |