From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 26 Feb 2023 02:32:42 +0000 (-0800) Subject: gh-102259: Fix re doc issue regarding right square brackets (GH-102264) X-Git-Tag: v3.11.3~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a0dc8a802814503eb93662a3486b890de070734;p=thirdparty%2FPython%2Fcpython.git gh-102259: Fix re doc issue regarding right square brackets (GH-102264) (cherry picked from commit bcadcde7122f6d3d08b35671d67e105149371a2f) Co-authored-by: Skip Montanaro Co-authored-by: Terry Jan Reedy --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 670569956522..7d8920169207 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