StringFreeQ

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.
Introduced in 2004
(5.1)