Excerpt |
---|
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. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}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.
{excerpt}
{signature:C#}
public System.String Group(int group)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function Group(ByVal group As Integer) As String
|
...
The 0-based index of the group for which to return a match.
Returns |
---|
The String that matches the specified group. |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:group}The 0\-based index of the group for which to return a match.{param}
{returns}The String that matches the specified group.{returns}
{example}{code:csharp|title=C#}
string firstGroupMatch = searchMatch.Group(0);
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim firstGroupMatch As String = searchMatch.Group(0){code}
{example}