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: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#} string firstGroupMatch = searchMatch.Group(0);{code} {code:vb.net|title=vb.net} Dim firstGroupMatch As String = searchMatch.Group(0){code} {example} |
Page History
Overview
Content Tools