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
Name | Type | Required |
---|---|---|
string | string | ✔ |
search | string | ✔ |
Outputs
Name | Type |
---|---|
count | string |
Examples
Inputs | Outputs | |
---|---|---|
string | search | count |
"Hello Yellow Submarine" | "e" | 3 |
"Hello Yellow Submarine" | "ello" | 2 |
"Hello Yellow Submarine" | "foo" | 0 |