Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > SearchMatch > Group

Group Method



Signature:

public String Group ( int group )

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.

Parameters:

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

Returns:

String The String that matches the specified group.

Example:

[csharp]
string firstGroupMatch = searchMatch.Group(0);



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.