Description
Returns the string that matches the specified group. The first group is always the string that matches the entire regular expression. Groups are ordered by the left-to-right order of the left parentheses of the group.
C#
public System.String Group(int group)
vb.net
Public Function Group(ByVal group As Integer) As String
Parameters
group
The 0-based index of the group for which to return a match.Returns
The String that matches the specified group.Examples
C#
string firstGroupMatch = searchMatch.Group(0);
vb.net
Dim firstGroupMatch As String = searchMatch.Group(0)
