Class TextMatch
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
textstringThe 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
textstringThe text to search for.
textOccurrenceuint0-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.