- string pattern/wildcard matching

String manipulation
(AFL 4.0)

SYNTAX StrMatch(''string'', ''searchstring'')
FUNCTION The function returns TRUE (1) or FALSE (0) whenever string matches searchstring or not.

Searchstring is can contain wild-card characters such as:
* - matches any string, including empty strings
? - matches any single character

This function is case sensitive (of course except wildcard characters).

If you want case insensitive matching - convert both string and searchstring to lowercase or uppercase prior to matching (StrToLower/StrToUpper)

EXAMPLE x = StrMatch("Every breath you take", "Every * you *"); // x will be TRUE
x = StrMatch("Every step you make", "Every * you *"); // x will be TRUE
SEE ALSO StrFind() function , StrToLower() function , StrToUpper() function


The StrMatch function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference