Count Occurrences
Strings
Contains is a ProtoFlux node that returns the amount of times Search (String) occurs in Str (String) as a int.
Inputs
Str (String)
The string to search for Search (String) in.
Search (String)
The string to be searching for.
ComparisonMode (StringComparison)
The search method to use when searching.
Outputs
* (int)
Examples
-
an example of using Count Occurrences To iterate over a string with a For Loop to remove stuff that begins with '<' and ends with '>' but has random text between the two. Also uses Index Of String for '>' to skip over the random text between.