({{, (RefLink[StringContainsQ, paclet:ref/StringContainsQ])["string",patt] 
yields (RefLink[True, paclet:ref/True]) if any part of string matches the string pattern patt, and yields (RefLink[False, paclet:ref/False]) otherwise.}, {, (RefLink[StringContainsQ, paclet:ref/StringContainsQ])[{"(Subscript[string, 1])","(Subscript[string, 2])",…},patt]
gives a list of the results for each of the (Subscript[string, i]).}, {, (RefLink[StringContainsQ, paclet:ref/StringContainsQ])[patt]
represents an operator form of (RefLink[StringContainsQ, paclet:ref/StringContainsQ]) that can be applied to an expression.}})

OpenersNotesSection(Spacer1)Details and Options

The string expression patt can contain any of the objects specified in the notes for (RefLink[StringExpression, paclet:ref/StringExpression]).

Setting the option (RefLink[IgnoreCase, paclet:ref/IgnoreCase])->(RefLink[True, paclet:ref/True]) makes (RefLink[StringContainsQ, paclet:ref/StringContainsQ]) treat lowercase and uppercase letters as equivalent.

(RefLink[StringContainsQ, paclet:ref/StringContainsQ])[patt][expr] is equivalent to (RefLink[StringContainsQ, paclet:ref/StringContainsQ])[expr,patt].

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Test whether a string pattern contains a substring matching the pattern:

StringContainsQ["bcde","c"~~__~~"t"]

StringContainsQ["bcde","b"~~__~~"e"]

Give a list of strings as input:

StringContainsQ[{"a","b", "ab", "abcd", "bcde"},"a"]

Map an operator form over a list:

StringContainsQ["C"~~_~~"C"]/@{"CAC1","CTG1","ACT1","CGA1","CTC1"}

OpenersExampleSection1(Spacer1)Options  (1)

OpenersExampleSubsection0(Spacer1)IgnoreCase  (1)

Match substrings regardless of case:

StringContainsQ["abcd", "BC", IgnoreCase -> False]

StringContainsQ["abcd", "BC" , IgnoreCase -> True]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[StringCount, paclet:ref/StringCount])  ▪  (RefLink[StringCases, paclet:ref/StringCases])  ▪  (RefLink[StringPosition, paclet:ref/StringPosition])  ▪  (RefLink[StringStartsQ, paclet:ref/StringStartsQ])  ▪  (RefLink[StringEndsQ, paclet:ref/StringEndsQ])  ▪  (RefLink[StringDelete, paclet:ref/StringDelete])  ▪  (RefLink[StringExpression, paclet:ref/StringExpression])  ▪  (RefLink[RegularExpression, paclet:ref/RegularExpression])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[String Manipulation, paclet:guide/StringManipulation])}, {▪(RefLinkPlain[String Patterns, paclet:guide/StringPatterns])}, {▪(RefLinkPlain[String Operations, paclet:guide/StringOperations])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/28-tests-and-conditionals.html])(WebLink[: Tests and Conditionals, https://www.wolfram.com/language/elementary-introduction/28-tests-and-conditionals.html])}})}})