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,
       uinttextOccurrence
    )
Parameters text The text to search for. textOccurrence 0-based ordinal number of the text's occurrence.

Top

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: