Product Site

5.1.7.56. countStr

Returns a count of the occurrences of needle in the receiving string that do not overlap.

Here are some examples:
Example 5.94. String class — countStr method
Say "101101"~countStr("1")        -->    4
Say "J0KKK0"~CountStr("KK")       -->    1