$countcs » History » Version 1
Per Amundsen, 07/13/2014 04:42 AM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *$countcs(string,substring,substring2,...,substringN)* |
||
4 | |||
5 | Returns the number of times substring occurs in string. |
||
6 | |||
7 | Searches case-sensitive, use [[$count]] for case-insensitive searches. |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | string - The string to search for. |
||
12 | substring,substring2,...,substringN - Substrings to search. |
||
13 | |||
14 | *Example* |
||
15 | |||
16 | <pre> |
||
17 | ;returns 1 |
||
18 | //echo -ag $count(Aaa,A) |
||
19 | |||
20 | ;returns 2 |
||
21 | //echo -ag $count(Aaa,a) |
||
22 | </pre> |