Page tree
Skip to end of metadata
Go to start of metadata

Description

A SearchMatch object represents a match in the document found by using the method Element.Search.

C#
vb.net

Examples

C#
vb.net

Properties

Name

Description

Element

Returns an Element object representing the current text match.

GroupCount

Returns the number of groups found in the current SearchMatch. Regular expression groups are created by adding parentheses to the regular expression. This method should always return at least 1.

Methods

Name

Description

Group(Int32)

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.

Replace(String)

Replaces this match with the specified string.
  • No labels