m YoshBot moved page ProtoFlux:Replace Substring to ProtoFlux:ReplaceSubstring: Automated: removing spaces from ProtoFlux namespace |
There is no start index with replace string node, it is a Compoarison Mode input. Spellcheck. The node is not in operators, it is in strings. Updated descriptions. |
||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=Replace Substring | |Name=Replace Substring | ||
|Category= | |Category=Strings | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
Line 7: | Line 7: | ||
{"Name":"SearchFor", "Type":"String"}, | {"Name":"SearchFor", "Type":"String"}, | ||
{"Name":"ReplaceWith", "Type":"String"}, | {"Name":"ReplaceWith", "Type":"String"}, | ||
{"Name":" | {"Name":"ComparisonMode", "Type":"StringComparison"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
Line 15: | Line 15: | ||
|}} | |}} | ||
Replace Substring is a ProtoFlux node that replaces the all occurrences of SearchFor ([[Type:String|String]]) in Str ([[Type:String|String]]) with ReplaceWith ([[Type:String|String]]). | '''Replace Substring''' is a ProtoFlux node that replaces the all occurrences of SearchFor ([[Type:String|String]]) in Str ([[Type:String|String]]) with ReplaceWith ([[Type:String|String]]). | ||
== Inputs == | == Inputs == | ||
Line 30: | Line 30: | ||
What to replace SearchFor ([[Type:String|String]]) with. | What to replace SearchFor ([[Type:String|String]]) with. | ||
=== ComparasonMode ([[Type:StringComparison|StringComparison]]) === | |||
The mode used to compare the string before evaluation of the replace. | |||
== Outputs == | == Outputs == | ||
Line 35: | Line 39: | ||
=== * ([[Type:String|String]]) === | === * ([[Type:String|String]]) === | ||
Returns Str ([[Type:String|String]]) with all | Returns Str ([[Type:String|String]]) with all occurrences of SearchFor ([[Type:String|String]]) replaced with ReplaceWith ([[Type:String|String]]). | ||
== Examples == | == Examples == |
Latest revision as of 23:27, 29 September 2025
Replace Substring
Strings
Replace Substring is a ProtoFlux node that replaces the all occurrences of SearchFor (String) in Str (String) with ReplaceWith (String).
Inputs
Str (String)
The string to search for SearchFor (String) in.
SearchFor (String)
The string to be replacing in Str (String).
ReplaceWith (String)
What to replace SearchFor (String) with.
ComparasonMode (StringComparison)
The mode used to compare the string before evaluation of the replace.
Outputs
* (String)
Returns Str (String) with all occurrences of SearchFor (String) replaced with ReplaceWith (String).
Examples
-
An example of using Replace Substring to cut out "cheese" from a transcript.