Legacy Documentation
Mathematica 9 (2012)
This is documentation for Mathematica 9, which was
based on an earlier version of Wolfram Language.
View current documentation (Version 15.0)based on an earlier version of Wolfram Language.
BUILT-IN MATHEMATICA SYMBOL
StringCount
StringCount["string", "sub"]
gives a count of the number of times
appears as a substring of
.
StringCount["string", patt]
gives the number of substrings in
that match the general string expression patt.
StringCount["string", {patt1, patt2, ...}]
counts the number of occurrences of any of the
.
StringCount[{s1, s2, ...}, p]
gives the list of results for each of the
.
New in 5.1