Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently manage and refine text prompts by searching for and deleting specific substrings.
The text-util-prompt-del
node is designed to help you manage and refine your text prompts by allowing you to search for specific substrings and delete them based on your preferences. This node is particularly useful for AI artists who need to clean up or modify text prompts efficiently. By specifying the text to search for and the text to delete, you can streamline your text processing tasks, ensuring that your prompts are precise and free from unwanted elements. The node offers a simple yet powerful way to manipulate text, making it an essential tool for anyone working with text-based AI models.
This parameter allows you to specify the substring you want to search for within your text prompt. It is a string input and can be left empty if you do not wish to perform a search. The function of this parameter is to identify the part of the text that you may want to delete or keep based on the action specified. There are no minimum or maximum values for this parameter, and it defaults to an empty string.
This parameter specifies the substring that you want to delete from the text prompt. It is also a string input and can be left empty if you do not wish to delete any specific text. The function of this parameter is to identify the part of the text that should be removed if the action is set to "yes". There are no minimum or maximum values for this parameter, and it defaults to an empty string.
This parameter determines whether the deletion action should be performed. It accepts two options: "yes" and "no". If set to "yes", the node will delete the specified substring (todel
) from the text prompt. If set to "no", the node will return the original text prompt without any modifications. This parameter is crucial for controlling the behavior of the node and defaults to "yes".
The output parameter is a string that represents the modified text prompt. If the action is set to "yes", the output will be the text prompt with the specified substring (todel
) removed. If the action is set to "no", the output will be the original text prompt without any changes. This output is essential for further processing or use in other nodes.
search
parameter to identify specific parts of your text prompt that you want to clean up or modify.action
parameter to "yes" to enable the deletion of the specified substring, or "no" to keep the original text prompt intact.{class_type}
does not exist."© Copyright 2024 RunComfy. All Rights Reserved.