String Occurrences

Counts the number of occurrences of a substring within the string.

Interface

Inputs

ParameterDetailsPossible Types
String

The string to search within.

Primary Input

String
Substring

The substring to count occurrences of.

Default: ""

String
Overlapping

Whether to count overlapping occurrences, using the substring as a sliding window.

For example, "aa" occurs twice in "aaaa" without overlapping but three times with overlapping.

Default: false

bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64