NodesProcessing Nodes
Edit Page on GitHubText Replace
Replaces text in a string, with an option to replace all occurrences.
textreplaceprocessingstringEasy0

Description
The Text Replace node allows you to replace specific text within a larger body of text. You can choose to replace all occurrences of the text or just the first one.
Common Use Cases
- Cleaning up text data by replacing unwanted substrings.
- Formatting text by replacing placeholders with actual values.
- Preparing text for further processing by standardizing certain terms.
Inputs
The input connections this node accepts:
NameDescriptionTypeFlowThe flow of the workflowFlowTextThe text on which replacement will be done.TextText to replaceThe text/substring to search for and replace.TextText to replace withThe text to insert as the replacement.TextOutputs
The output connections this node provides:
NameDescriptionTypeTextThe result text after replacement.TextToolThe tool version of this node, to be used by LLMsToolFields
The configurable fields this node provides:
NameDescriptionTypeTextThe text on which replacement will be done.Value:Enter text here...TextText to replaceThe text to search for.Value: Enter text here...TextText to replace withThe text to replace with.Value: Enter text here...TextReplace AllReplace all occurrences of the textValue: falseCheckBoxLast updated on