'Declaration
Public Overloads Function SearchTextRegex( _ ByVal Pattern As String, _ ByVal Occurence As Integer, _ ByVal CaseSensitive As Boolean _ ) As Boolean
public bool SearchTextRegex( string Pattern, int Occurence, bool CaseSensitive )
public function SearchTextRegex( Pattern: String; Occurence: Integer; CaseSensitive: Boolean ): Boolean;
public function SearchTextRegex( Pattern : String, Occurence : int, CaseSensitive : boolean ) : boolean;
public: bool SearchTextRegex( string* Pattern, int Occurence, bool CaseSensitive )
public: bool SearchTextRegex( String^ Pattern, int Occurence, bool CaseSensitive )
Parameters
- Pattern
- The regular expression pattern to search for.
- Occurence
- The occurrence of the searched expression on the current page. Set the occurrence to 0 if you are searching for all occurrences of a given text. Set the occurrence to 1 if you are searching for the first occurrence, set it to 2 for the second etc.
- CaseSensitive
- Set this parameter to true if you want to apply case-sensitive search, otherwise set it to false.
Return Value
true if the given text expression has been found on the current page according to the specified parameters, otherwise false. The GetStat method can be subsequently used to determine if this method has been successful.