Table of Contents

Class TextMatch

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

Class defining a text match we are looking for.

public class TextMatch
Inheritance
TextMatch
Inherited Members

Remarks

Usage example: var textMatch = TextMatch.Match("some text"); var textMatch = TextMatch.Match("some text", 2);

Methods

Match(string)

Returns the text match object which can be used to find the first match of the specified text.

public static TextMatch Match(string text)

Parameters

text string

The text to search for.

Returns

TextMatch

The text match object which can be used to find the first match of the specified text.

Match(string, uint)

Returns the text match object which can be used to find the n-th match of the specified text.

public static TextMatch Match(string text, uint textOccurrence)

Parameters

text string

The text to search for.

textOccurrence uint

0-based ordinal number of the text's occurrence.

Returns

TextMatch

The text match object which can be used to find the n-th match of the specified text.