$countcs » History » Revision 4
Revision 3 (Per Amundsen, 08/12/2015 09:37 AM) → Revision 4/5 (Per Amundsen, 08/12/2015 09:38 AM)
_Added in 1.8.10_ *$countcs(string,substring,substring2,...,substringN)* Returns the number of times substring occurs in string. _[[$countcs]] is case-sensitive, see [[$count]] for case-insensitive version._ *Parameters* string - The string to search for. substring,substring2,...,substringN - Substrings to search. *Example* <pre> ; Count number of times 'A' 'A* appears in 'Aaa'. //echo -ag $countcs(Aaa,A) ; Count number of times 'a' 'a* appears in 'Aaa'. //echo -ag $countcs(Aaa,a) </pre>