
strmatch - compares two character strings

Calling sequence:
strmatch(string1, string2)

Parameter:

string1, string2  --   character strings

Overloading:

all

Summary:

strmatch returns TRUE if the character stringstring2 is identical to the
character string string1, otherwise FALSE is returned. The arguments can
contain the "wildcards" \? and \*: \? stands for any or a missing character,
\* stands for any (also an empty) series of characters.

Due to its use as a wildcard, the sign \ must be masked with \, i.e. written
as \\. strmatch returns an error if the arguments are not character strings.
strmatch is a kernel function.

>>  strmatch("Mississippi", "Mis\?i\*pi\*");

     TRUE

>>  strmatch("Missi\\ssippi", "Miss\?i\\ssippi\?");

      TRUE

>>  strmatch("a\?b", "a\?cb"); strmatch("a\?cb", "a\?b");

      FALSE

      TRUE

See also:  strlen , substring

