The MATCH_STRING function
searches string1 using the
search pattern specified in string2.
If a match was found, true is returned. Otherwise, false is returned.
Search strings can include
wildcards in the leading (*ABC) and trailing (ABC*) position, or a
combination of the two (*ABC*). Wildcards within a string are invalid
(A*BC).
A question mark can
be used as a wildcard but is matched only to a character. For example,
AB? will match ABC, not AB.
To execute a search
for a character that is used as a wildcard, precede the character
with a backslash. This denotes that the character should be used literally
and not as a wildcard. Valid search strings include: *BCD*, *B?D*,
*BCDE, *BC?E, *BCD?, ABCD*, AB?D*, ?BCD*, *B??*, *B\?\\* (will match
the literal string AB?\E). An invalid example is: AB*DE.
For more complex searches,
use regular expressions instead of the MATCH_STRING() function.