Docs
NodesProcessing Nodes
Edit Page on GitHub

Text Replace

Replaces text in a string, with an option to replace all occurrences.

textreplaceprocessingstringEasy0
Text Replace Node Screenshot

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.Text

Outputs

The output connections this node provides:

NameDescriptionTypeTextThe result text after replacement.TextToolThe tool version of this node, to be used by LLMsTool

Fields

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: falseCheckBox

Last updated on