Share this page

# TextMatch Class

Class defining a text match we are looking for.

C# Syntax

                                public class TextMatch

Remarks

Usage example:

`var textMatch = TextMatch.Match("some text");`

`var textMatch = TextMatch.Match("some text", 2);`

Inheritance Hierarchy

System.Object
HP.LFT.SDK.Web.TextMatch

Public Methods

| Name | Description
--- | --- | ---
| Match(String) | Returns the text match object which can be used to find the first match of the specified text. C# Syntax
                                public static TextMatch Match(
       string text
    )
Parameters text The text to search for.
| Match(UInt32,String) | Returns the text match object which can be used to find the n-th match of the specified text. C# Syntax
                                public static TextMatch Match(
       string text,
       uint textOccurrence
    )
Parameters text The text to search for. textOccurrence 0-based ordinal number of the text's occurrence.

Top

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: