]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102259: Fix re doc issue regarding right square brackets (#102264)
authorSkip Montanaro <skip.montanaro@gmail.com>
Sun, 26 Feb 2023 02:22:16 +0000 (20:22 -0600)
committerGitHub <noreply@github.com>
Sun, 26 Feb 2023 02:22:16 +0000 (21:22 -0500)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/library/re.rst

index d0a16b95184474a5e8a572b5919e842a9e5ac140..b7510b93d754271d2e9390d1a4ce4492ab5c2fe0 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