text →
count-substring(
    substring: text
) → integer

Returns the count of non-overlapping occurrences of a substring, defined as a parameter, in the argument value.

Parameters

Name Type Required Description
substring text Yes The substring to count in the argument value.

Examples

"Hello World" | count-substring("lo")  1

Kind: Function
Scope: text/counting
Aliases: text-to-count-substring


This site uses Just the Docs, a documentation theme for Jekyll.