ComfyUI > Nodes > ComfyUI-iTools > iTools Text Replacer

ComfyUI Node: iTools Text Replacer

Class Name

iToolsTextReplacer

Category
iTools
Author
MohammadAboulEla (Account age: 1284days)
Extension
ComfyUI-iTools
Latest Updated
2025-03-07
Github Stars
0.05K

How to Install ComfyUI-iTools

Install this extension via the ComfyUI Manager by searching for ComfyUI-iTools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-iTools in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

iTools Text Replacer Description

Automate text replacement for efficient and accurate editing tasks.

iTools Text Replacer:

The iToolsTextReplacer node is designed to facilitate the process of text manipulation by allowing you to replace specific substrings within a given text. This node is particularly useful when you need to make consistent changes across large bodies of text, such as updating terminology, correcting errors, or customizing content dynamically. By automating the text replacement process, it saves time and reduces the potential for human error, ensuring that your text modifications are applied accurately and efficiently. The node operates by identifying a specified match within the input text and replacing it with a new string, making it a versatile tool for text editing tasks.

iTools Text Replacer Input Parameters:

text_in

The text_in parameter is the primary input for the node, where you provide the original text that you wish to modify. This parameter is crucial as it serves as the source material for the text replacement operation. It is a required field and must be a single-line string, ensuring that the node has a clear and concise text input to work with. There are no default values for this parameter, as it depends entirely on the specific text you want to process.

match

The match parameter specifies the exact substring within the text_in that you want to replace. This parameter is optional, allowing you to define the text pattern that the node will search for within the input text. If left empty, no replacement will occur, as there will be no match to identify. The match parameter is a single-line string, and its value directly impacts the node's ability to locate and replace the desired text.

replace

The replace parameter defines the new string that will substitute the match substring in the text_in. This parameter is also optional and is used to specify what the matched text should be changed to. Like the match parameter, it is a single-line string. If this parameter is left empty, the matched text will be removed from the input text, effectively deleting it.

iTools Text Replacer Output Parameters:

text_out

The text_out parameter is the result of the text replacement operation, providing the modified version of the text_in after the specified match has been replaced with the replace string. This output is a single-line string that reflects the changes made by the node, allowing you to see the final edited text. The text_out parameter is essential for verifying that the text replacement has been executed correctly and as intended.

iTools Text Replacer Usage Tips:

  • Ensure that the match parameter accurately reflects the text you want to replace to avoid unintended modifications.
  • Use the replace parameter to introduce new terminology or correct errors consistently across your text.

iTools Text Replacer Common Errors and Solutions:

No match found

  • Explanation: This error occurs when the specified match string is not found within the text_in.
  • Solution: Double-check the match parameter to ensure it accurately represents the text you intend to replace. Consider case sensitivity and any potential typos.

Empty text_in

  • Explanation: This error arises when the text_in parameter is left empty, providing no text for the node to process.
  • Solution: Provide a valid string in the text_in parameter to enable the text replacement operation.

iTools Text Replacer Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-iTools
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.