Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3122ce3

Browse files
committed
(?:...) is a non-capturing, but still grouping construct.
1 parent 5c66bca commit 3122ce3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The special characters are:
229229
undefined.
230230

231231
``(?:...)``
232-
A non-grouping version of regular parentheses. Matches whatever regular
232+
A non-capturing version of regular parentheses. Matches whatever regular
233233
expression is inside the parentheses, but the substring matched by the group
234234
*cannot* be retrieved after performing a match or referenced later in the
235235
pattern.

0 commit comments

Comments
 (0)