Table of Contents

Class TextMatch

Class defining a text match we are looking for.

Inheritance
TextMatch
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public class TextMatch
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.

Declaration
public static TextMatch Match(string text)
Parameters
Type Name Description
string text

The text to search for.

Returns
Type Description
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.

Declaration
public static TextMatch Match(string text, uint textOccurrence)
Parameters
Type Name Description
string text

The text to search for.

uint textOccurrence

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

Returns
Type Description
TextMatch

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