This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Programming / String Manipulation /

StringMatchQ

FilledSmallSquare StringMatchQ["string", "pattern"] yields True if string matches the specified string pattern, and yields False otherwise.

FilledSmallSquare The pattern string can contain literal characters, together with the metacharacters * and @ specified in Section A.3.13.

FilledSmallSquare Example: StringMatchQ["apppbb", "a*b"] LongRightArrow.

FilledSmallSquare Setting the option IgnoreCase -> True makes StringMatchQ treat lower- and upper-case letters as equivalent.

FilledSmallSquare Setting the option SpellingCorrection -> True makes StringMatchQ allow strings to match even if a small fraction of their characters are different.

FilledSmallSquare See Section 2.8.3.

FilledSmallSquare See also: StringPosition, Equal, Names, MatchQ.

FilledSmallSquare New in Version 1.

Further Examples