Skip to main content

Count

Module Info:​

moduleType: "internal",
moduleName: "countString"

Description​

The countString function receives a string and a substring and counts how many times the substring appears in the string.

Inputs​

NameTypeRequired
stringstring ✔
searchstring ✔

Outputs​

NameType
countstring

Examples​

Inputs Outputs
string search count
"Hello Yellow Submarine" "e" 3
"Hello Yellow Submarine" "ello" 2
"Hello Yellow Submarine" "foo" 0