$(count)
Description
This built-in command, as the name suggest, provides count of various text filters such as “count-uppercase-only”, “count-lowercase-only”, “count-digit-only”, “count-only-punctuations”, etc. It also provide other basic functionality to manipulate character data.
Available Functions
$(count|upper|text)
Renders the number of uppercase characters in text
Example
Script
_01.png)
Output
_02.png)
$(count|lower|text)
Renders the number of lowercase characters in text
Example
Script
_03.png)
Output
_04.png)
$(count|number|text)
Renders the number of digit characters (0,1,2,3,4,...) in text
Example
Script
_05.png)
Output
_06.png)
$(count|alphanumeric|text)
Renders the number of alphabetic and numeric characters in text
Example
Script
_07.png)
Output
_08.png)
$(count|whitespace|text)
Renders the number of whitespace characters - space, tab, newline (\n), carriage return (\r) - in text
Example
Script
_09.png)
Output
_10.png)
$(count|punctuation|text)
Renders the number of punctuation characters (!"#$%&'()*+,-./\:;<=>?@[]^_{|}~) in text
Example
Script
_11.png)
Output
_12.png)
$(count|any|text|include)
renders the number of matches in text based on the characters listed in include.
For example, $(count|any|This is a test.|ist) would yield 7 since This is a test.
- duplicate character in
characterswill not alter the result (i.e. no duplicate count) - character in
includeis not order specific
Example
Script
_13.png)
Output
_14.png)
$(count|size|text)
renders the length of text
Example
Script
_15.png)
Output
_16.png)
$(count|omit|text|omitChars)
Renders the number of characters in text that are not found in omitChars
Example
Script
_17.png)
Output
_18.png)
$(count|sequence|text|search)
Renders the number of matches in text based on the specified search.
For example, $(count|sequence|Doo be doo be doo|oo) would render 3.
Example
Script
_19.png)
Output
_20.png)