[Visual Basic] Public Class Match Inherits Group [C#] public class Match : Group [C++] public __gc class Match : public Group [JScript] public class Match extends Group
Since a single match can involve multiple capturing groups, Match has Group() methods that return detailed results for each group. Match also inherits from Group so that the whole substring matched can be accessed directly. (That is, the Match instance itself is equivalent to Match.Group(0)). The Match object is immutable and has no public constructor.
Namespace: System.Text.RegularExpressions
Assembly: System.Text.RegularExpressions.dll