Project

General

Profile

$count » History » Revision 2

Revision 1 (Per Amundsen, 07/13/2014 04:41 AM) → Revision 2/4 (Per Amundsen, 08/12/2015 09:36 AM)

_Added in 1.8.10_ 

 *$count(string,substring,substring2,...,substringN)* 

 Returns the number of times substring occurs in string. 

 _[[$count]] is Searches case-insensitive, see use [[$countcs]] for case-sensitive version._ searches. 

 *Parameters* 

 string - The string to search for. 
 substring,substring2,...,substringN - Substrings to search. 

 *Example* 

 <pre> 
 ; returns ;returns 1 
 //echo -ag $count(hello,el) 

 ; returns ;returns 2 
 //echo -ag $count(hello,l) 
 </pre>