diff options
author | Skip Montanaro <skip.montanaro@gmail.com> | 2023-02-26 02:22:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 02:22:16 (GMT) |
commit | bcadcde7122f6d3d08b35671d67e105149371a2f (patch) | |
tree | 2f6333f5d31d42f1d6c15212c267c0708a95f0db /Doc | |
parent | d71edbd1b7437706519a9786211597d95934331a (diff) | |
download | cpython-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.rst | 3 |
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 |