Skip to content

StringCount

StringCount(string, pattern)

counts all occurences of pattern in string.

Examples

>> StringCount("a#ä_123", WordCharacter)
5
>> StringCount("a#ä_123", LetterCharacter)
2

StringCases, StringContainsQ, StringExpression, StringFreeQ, StringInsert, StringJoin, StringLength, StringMatchQ, StringPart, StringPosition, StringQ, StringReplace, StringRiffle, StringSplit, StringTake, StringToByteArray, StringTrim

Implementation status

  • ✅ - full supported

Github