Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

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.

Signature
C#
C#
 public System.String Group(int group)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Function Group(ByVal group As Integer) As String
{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#}
Parameters
Param
group
group

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
titleC#

string firstGroupMatch = searchMatch.Group(0);
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim firstGroupMatch As String = searchMatch.Group(0)
{code} {example}