GetFirstWildcardMatch
Sub GetFirstWildcardMatch($source As String, $wildcard As String) As String
Searches $source for the first occurrence of $wildcard. $wildcard is a wildcard expression that consists of a start text, an asterisk, and an end text with the following syntax:
StartText*EndText
GetFirstWildcardMatch is case-insensitive. If $wildcard is not found, GetFirstWildcardMatch returns an empty string.
Parameters
- $source ... String expression in which the search is performed.
- $wildcard ... Wildcard expression to search for (StartText*EndText).
Example:
Dim $s, $s2
$s = "a number or a text"
$s2 = GetFirstWildcardMatch($s, "or*xt") 'returns $s2 = "or a text"