Extracted from Pike v7.6 release 13 at 2004-11-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.