Syntax

Remarks

A capturing group can capture zero, one, or more strings in a single match because of quantifiers. (For more information, see Quantifiers.) All the substrings matched by a single capturing group are available from the Group.Captures property. Information about the last substring captured can be accessed directly from the Value and Index properties. (That is, the System.Text.RegularExpressions.Group instance is equivalent to the last item of the collection returned by the Group.Captures property, which reflects the last capture made by the capturing group.)