Replace First Substring (LogiX node)
Jump to navigation
Jump to search
Replace First Substring | ||
---|---|---|
Inputs | ||
String | Str | |
String | SearchFor | |
String | ReplaceWith | |
Int | StartIndex | |
Outputs | ||
String | * |
The Replace First Substring node outputs the input Str
with the first instance of the SearchFor
substring replaced with the ReplaceWith
string.
Usage
The StartIndex
determines which position in the input Str
searching for the SearchFor
substring should begin. Default is 0.
If no instance of the SearchFor
substring is found after the input StartIndex
, the output of this node is identical to the Str
input.
If you need to replace every instance of a substring, use Replace Substring (LogiX node) instead.