Skip to content

StringCases

Finds all occurrences of a substring.

$ wo 'StringCases["abcabc", "bc"]'
{bc, bc}
$ wo 'StringCases["hello", "l"]'
{l, l}
$ wo 'StringCases["hello", "x"]'
{}