]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102259: Fix re doc issue regarding right square brackets (GH-102264)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 Feb 2023 02:32:57 +0000 (18:32 -0800)
committerGitHub <noreply@github.com>
Sun, 26 Feb 2023 02:32:57 +0000 (18:32 -0800)
(cherry picked from commit bcadcde7122f6d3d08b35671d67e105149371a2f)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/library/re.rst

index 716d3401a2bb0d6a1be48fb1181ca8336715f58b..1df9cbe5ea1c6bfda26fbed1c0e05e688f84615f 100644 (file)
@@ -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