Welcome
$count will count the number of a specific character in a string.
[edit]
Format
$count(<string>,<character>)
[edit]
Parameters
- <string> The string to work with.
- <character> The character to count the occurances of in the string.
[edit]
Properties
None.
[edit]
Points To Note
$count is case-insensitive. There is no $countcs counterpart.
[edit]
Examples
//echo -a $count(ccc,c)
Output: 3
//echo -a $count(1 2 3 4 5 6 7 8 9,$chr(32))
Output: 8
[edit]
Hacks
None.
[edit]
Related Articles
[edit]
Related Commands
None.
[edit]
Related Events
None.
[edit]
Related Identifiers
$left, $len, $mid, $pos, $poscs, $right
| Text and Number Identifiers |
|---|
| $abs • $acos • $and • $asc • $asin • $atan • $base • $biton • $bitoff • $bytes • $calc • $ceil • $chr • $compress • $cos • $count • $decode • $decompress • $encode • $floor • $int • $isbit • $islower • $isupper • $left • $len • $log • $longip • $lower • $mid • $noqt • $not • $or • $ord • $pos • $poscs • $qt • $rand • $remove • $removecs • $replace • $replacecs • $replacex • $replacexcs • $right • $round • $sin • $sqrt • $str • $strip • $stripped • $tan • $upper • $wrap • $xor |