Skip to content

Commit

Permalink
pythongh-102259: Fix re doc issue regarding right square brackets (py…
Browse files Browse the repository at this point in the history
…thon#102264)


Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
smontanaro and terryjreedy authored Feb 26, 2023
1 parent d71edbd commit bcadcde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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
Expand Down

0 comments on commit bcadcde

Please sign in to comment.