Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

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"]LongRightArrow .
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.
• See Section 2.8.4.
• New in Version 1; modified in 5.1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: