ProtoFlux:IndexOfString
Index Of String is a ProtoFlux node that gives a index of where a string occurs in another string.
More actions
(Redirected from ProtoFlux:Index Of String)
Index Of String
Strings
The IndexOfString node looks for where a given string first occurs in another string and returns the index of the starting character, or -1 if not found.
Inputs
Str (String)
The string to search for Part (String) in.
Part (String)
The string to look for inside of Str (String).
StartIndex (int)
The position from which to start searching. Default 0.
SearchFromEnd (bool)
Whether this should start searching from the end rather than the beginning after StartIndex (int).
ComparisonType (StringComparison)
The string comparison to use.
Outputs
* (int)
The index of the starting character of the located occurrence of Part (String) in Str (String), or -1 if not found.
Examples
-
An example of Index Of String being used to splice a string for parsing.