mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-102259: Fix re doc issue regarding right square brackets (GH-102264)
(cherry picked from commit bcadcde712
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
6fa6c2a470
commit
972396143f
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ The special characters are:
|
|||
|
||||
* To match a literal ``']'`` inside a set, precede it with a backslash, or
|
||||
place it at the beginning of the set. For example, both ``[()[\]{}]`` and
|
||||
``[]()[{}]`` will both match a parenthesis.
|
||||
``[]()[{}]`` will match a right bracket, as well as left bracket, braces,
|
||||
and parentheses.
|
||||
|
||||
.. .. index:: single: --; in regular expressions
|
||||
.. .. index:: single: &&; in regular expressions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue