Extracted from Pike v7.6 release 9 at 2004-07-29.
pike.ida.liu.se
[Top]
7.2::
String

Method String.count()


Method count

string String.count(string haystack, string needle)

Description

This function counts the number of times the needle can be found in haystack .

Note

Intersections between needles are not counted, ie count("....","..") is 2.