Difference between revisions of "Charcount"
From Sonic Retro
(Created page with "<includeonly>{{#vardefine:charcountresult|0}}{{#loop: subchar |0 |{{#len:{{{1}}}}} |{{#ifeq: {{#sub:{{{1}}}|{{#var:subchar}}|{{#len:{{{2}}}}}}} | {{{2}}} | {{incvar|charcountr...") |
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
||
Line 17: | Line 17: | ||
{{charcount|She sells sea shells.|e}} | {{charcount|She sells sea shells.|e}} | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 19:19, 1 January 2022
This template counts the instances of a specified character (or another string) in a string. Note that it is case-sensitive.
Usage
{{charcount|She sells sea shells.|e}}
returns:
4