StringFreeQ["string", patt]
yields True if no substring in matches the string expression patt, and yields False otherwise.

StringFreeQ["string", {patt1, patt2, ...}]
yields True if no substring matches any of the .

StringFreeQ[{s1, s2, ...}, p]
gives the list of results for each of the .

Details and OptionsDetails and Options

  • The string expression patt can contain any of the objects specified in the notes for StringExpression.
  • Setting the option IgnoreCase->True makes StringFreeQ treat lowercase and uppercase letters as equivalent.
New in 5.1
New to Mathematica? Find your learning path »
Have a question? Ask support »