]> 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:42 +0000 (18:32 -0800)
committerGitHub <noreply@github.com>
Sun, 26 Feb 2023 02:32:42 +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 67056995652240082e42dd894ab30c0764c66c84..7d8920169207fde445400deb2c2aa5988dea7e16 100644 (file)
@@ -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