ProtoFlux:ReplaceSubstring: Difference between revisions

From Resonite Wiki
Create Replace Substring ProtoFlux Node Page with a funny example
 
m YoshBot moved page ProtoFlux:Replace Substring to ProtoFlux:ReplaceSubstring: Automated: removing spaces from ProtoFlux namespace
 
(2 intermediate revisions by one other user not shown)
Line 15: Line 15:
|}}
|}}


Replace First 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 39: Line 39:
== Examples ==
== Examples ==
<gallery widths=480px heights=480px>
<gallery widths=480px heights=480px>
File:Protoflux_example_Replace_Substring.webp|An example of using Replace First Substring to cut out "cheese" from a transcript.
File:Protoflux_example_Replace_Substring.webp|An example of using Replace Substring to cut out "cheese" from a transcript.
</gallery>
</gallery>


[[Category:ProtoFlux:Strings]]
[[Category:ProtoFlux:Strings]]

Latest revision as of 00:32, 21 August 2025

Replace Substring
Str
*
SearchFor
ReplaceWith
StartIndex
Operators

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.

Outputs

* (String)

Returns Str (String) with all occurances of SearchFor (String) replaced with ReplaceWith (String).

Examples