StringCases

WMA link


StringCases["string", pattern]

gives all occurrences of pattern in string.

StringReplace["string", pattern -> form]

gives all instances of form that stem from occurrences of pattern in string.

StringCases["string", {$pattern_1$, $pattern_2$, ...}]

gives all occurrences of $pattern_1$, $pattern_2$, ....

StringReplace["string", pattern, n]

gives only the first n occurrences.

StringReplace[{"$string_1$“, ”$string_2$", ...}, pattern]

gives occurrences in $string_1$, $string_2$, ...

StartOfString
StringExpression