StringMatchQ
Usage
• StringMatchQ["string", patt] tests whether string matches the string pattern patt. • StringMatchQ["string", RegularExpression["regex"]] tests whether string matches the specified regular expression. • StringMatchQ[{ , , ... }, p] gives the list of results for each of the .
Notes
• StringMatchQ allows abbreviated string patterns containing the metacharacters * and @ in the form specified in Section A.3.13. • Example: StringMatchQ["apppbb", "a*b"]  . • Verbatim["p"] specifies the verbatim string "p", with * and @ treated literally. • Setting the option IgnoreCase -> True makes StringMatchQ treat lower- and upper-case letters as equivalent. • Setting the option SpellingCorrection -> True makes StringMatchQ allow strings to match even if a small fraction of their characters are different. • New in Version 1; modified in 5.1.
|