Extracted from Pike v7.6 release 61 at 2005-12-30.
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.