Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
7.2::
String

Method String.count()


Method count

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.