mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
b275267aa7
commit
43571a3eea
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue