Count Occurrences

Pure
CountOccurrences

Counts how many times a substring appears in the input string.

Type: Pure (no side effects)
Category: Fortuna|String & Text
Keywords: string & text

Inputs

NameTypeDefaultDescription
InputFStringInput parameter
SubstringFStringSubstring parameter
bIgnoreCasebooltruebIgnoreCase parameter

Outputs

NameTypeDescription
ReturnValueintReturnValue output

Example Use Cases

Example 1

Count keyword mentions in chat log.

Example 2

Count vowels in a word puzzle.