ComfyUI > Nodes > ComfyUI-EZ-AF-Nodes > EZ Find & Replace

ComfyUI Node: EZ Find & Replace

Class Name

EZ_Find_Replace

Category
EZ NODES
Author
ez-af (Account age: 599days)
Extension
ComfyUI-EZ-AF-Nodes
Latest Updated
2025-09-23
Github Stars
0.03K

How to Install ComfyUI-EZ-AF-Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-EZ-AF-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-EZ-AF-Nodes 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

EZ Find & Replace Description

The EZ_Find_Replace node automates text string replacement, enhancing efficiency in bulk text editing.

EZ Find & Replace:

The EZ_Find_Replace node is a versatile tool designed to streamline the process of text manipulation by allowing you to efficiently find and replace specific text strings within a larger body of text. This node is particularly beneficial for tasks that require bulk text editing, such as modifying prompts, correcting typos, or updating repetitive text elements in your AI art projects. By automating the find and replace process, it saves you time and reduces the potential for human error, ensuring consistency across your text data. The node operates by taking an input string and replacing all instances of a specified substring with a new string, making it an essential utility for text processing tasks.

EZ Find & Replace Input Parameters:

string

The string parameter is the primary input for the node, where you provide the text that you want to process. This parameter is required and supports multiline input, allowing you to work with large blocks of text. The default value is an empty string, and it is crucial to input the text accurately to ensure the desired replacements are made.

find

The find parameter specifies the substring you want to search for within the input text. This is an optional parameter, and if left empty, no replacements will occur. It is a single-line string input, and the default value is an empty string. The accuracy of this parameter directly impacts the node's ability to locate the correct text to replace.

replace

The replace parameter defines the new string that will replace each occurrence of the find substring in the input text. Like the find parameter, this is optional and accepts a single-line string. The default value is an empty string, meaning if no replacement text is provided, the find substring will be removed from the input text.

EZ Find & Replace Output Parameters:

STRING

The output of the EZ_Find_Replace node is a modified version of the input text, returned as a STRING. This output reflects all the replacements made, where each instance of the find substring has been substituted with the replace string. The output is crucial for verifying that the desired text transformations have been successfully applied.

EZ Find & Replace Usage Tips:

  • Ensure that the find parameter accurately matches the text you wish to replace to avoid unintended modifications.
  • Use the replace parameter to introduce new text or correct errors, ensuring consistency across your text data.
  • Test the node with a small sample of text to verify the replacements before applying it to larger datasets.

EZ Find & Replace Common Errors and Solutions:

Empty Input String

  • Explanation: The input string parameter is empty, resulting in no text to process.
  • Solution: Provide a valid text input in the string parameter to enable the find and replace operation.

Find String Not Specified

  • Explanation: The find parameter is empty, so no text is identified for replacement.
  • Solution: Specify the text you want to find in the find parameter to perform replacements.

Replace String Not Specified

  • Explanation: The replace parameter is empty, leading to the removal of the find text without substitution.
  • Solution: Provide a replacement text in the replace parameter if you want to substitute the find text with something else.

EZ Find & Replace Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-EZ-AF-Nodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.