Group represents the results from a single capturing group. A capturing group can capture zero, one, or more strings in a single match because of quantifiers, so Group supplies a collection of Capture objects.
The following tables list the members exposed by the Group type.
|Captures||Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the RegexOptions.RightToLeft option). The collection may have zero or more items.|
|Index||The position in the original string where the first character of the captured substring was found.(Inherited from Capture.)|
|Length||The length of the captured substring.(Inherited from Capture.)|
|Success||Gets a value indicating whether the match is successful.|
|Value||Gets the captured substring from the input string.(Inherited from Capture.)|
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|Synchronized||Returns a Group object equivalent to the one supplied that is safe to share between multiple threads.|
|ToString||Gets the captured substring from the input string. (Inherited from Capture.)|