Skip to content

Commit 9723961

Browse files
miss-islingtonsmontanaroterryjreedy
authored
gh-102259: Fix re doc issue regarding right square brackets (GH-102264)
(cherry picked from commit bcadcde) Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 6fa6c2a commit 9723961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/re.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ The special characters are:
232232

233233
* To match a literal ``']'`` inside a set, precede it with a backslash, or
234234
place it at the beginning of the set. For example, both ``[()[\]{}]`` and
235-
``[]()[{}]`` will both match a parenthesis.
235+
``[]()[{}]`` will match a right bracket, as well as left bracket, braces,
236+
and parentheses.
236237

237238
.. .. index:: single: --; in regular expressions
238239
.. .. index:: single: &&; in regular expressions

0 commit comments

Comments
 (0)