STD.Str.WildMatch( src, _pattern, ignore_case )
STD.Uni.WildMatch( src, _pattern, _noCase )
| src | A string containing the data to search. |
| _pattern | A string containing the wildcard expression to match. Valid wildcards are ? (single character) and * (multiple character). |
| ignore_case / _noCase | A boolean true or false indicating whether to ignore the case. |
| Return: | WildMatch returns a BOOLEAN value. |
The WildMatch function returns TRUE if the pattern matches the source.
The case-insensitive version of the Unicode WildMatch has been optimized for speed over accuracy. For accurate case-folding, you should either use the Unicode ToUpperCase function explicitly and then a case-sensitive the Unicode WildMatch, or use REGEXFIND.
Example:
STD.Str.wildmatch('abcdeabcdec', 'a?c*', false) = TRUE;