summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSkip Montanaro <skip.montanaro@gmail.com>2023-02-26 02:22:16 (GMT)
committerGitHub <noreply@github.com>2023-02-26 02:22:16 (GMT)
commitbcadcde7122f6d3d08b35671d67e105149371a2f (patch)
tree2f6333f5d31d42f1d6c15212c267c0708a95f0db /Doc
parentd71edbd1b7437706519a9786211597d95934331a (diff)
downloadcpython-bcadcde7122f6d3d08b35671d67e105149371a2f.zip
cpython-bcadcde7122f6d3d08b35671d67e105149371a2f.tar.gz
cpython-bcadcde7122f6d3d08b35671d67e105149371a2f.tar.bz2
gh-102259: Fix re doc issue regarding right square brackets (#102264)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index d0a16b9..b7510b9 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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