Skip to content

Commit

Permalink
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 43571a3)

Co-authored-by: Mike cm <mikecmcleod@gmail.com>
  • Loading branch information
miss-islington and MaxwellDupre committed Apr 5, 2022
1 parent f4e711b commit d95e072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/howto/regex.rst
Expand Up @@ -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.
Expand Down

0 comments on commit d95e072

Please sign in to comment.