(?:...) is a non-capturing, but still grouping construct.

This commit is contained in:
Georg Brandl 2010-10-29 06:17:38 +00:00
parent 5c66bcaa1a
commit 3122ce3e5d
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ The special characters are:
undefined.
``(?:...)``
A non-grouping version of regular parentheses. Matches whatever regular
A non-capturing version of regular parentheses. Matches whatever regular
expression is inside the parentheses, but the substring matched by the group
*cannot* be retrieved after performing a match or referenced later in the
pattern.