Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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#
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
Parameters

...

The 0-based index of the group for which to return a match.

Returns

The String that matches the specified group.

{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}
{code:vb.net
|title=vb.net
}
Dim firstGroupMatch As String = searchMatch.Group(0){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle