Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile tool for advanced text manipulation tasks, including search, delete, move, replace, and clean text prompts efficiently.
The text-util-prompt-adv-search
node is a versatile tool designed to perform advanced text manipulation tasks. It allows you to search for specific strings within a given text and perform various actions such as deleting, moving to the head or tail, replacing, or simply searching for the string. This node is particularly useful for AI artists who need to manage and manipulate text prompts efficiently, ensuring that their text data is clean, organized, and tailored to their specific needs. By leveraging this node, you can streamline your text processing workflow, making it easier to prepare and refine text prompts for various AI art projects.
This parameter takes a string input that represents the text you want to manipulate. It is the primary text on which the search and subsequent actions will be performed. The default value is an empty string.
This parameter takes a string input that specifies the text or pattern you want to search for within the main text. It is essential for identifying the parts of the text that need to be manipulated. The default value is an empty string.
This parameter determines the action to be performed on the text based on the search results. The available options are none
, del
, move2head
, move2tail
, replace
, and search
. Each option triggers a different manipulation:
none
: No action is performed.del
: Deletes the searched text.move2head
: Moves the searched text to the beginning of the main text.move2tail
: Moves the searched text to the end of the main text.replace
: Replaces the searched text with the text provided in the replace
parameter.search
: Simply searches for the text without any further action.This parameter takes a string input that specifies the text to replace the searched text with when the replace
action is selected. The default value is an empty string.
The output is a string that represents the manipulated text after the specified action has been performed. This output is crucial for verifying the changes made to the text and ensuring that the desired manipulation has been achieved.
search
action to verify the presence of specific text patterns before performing more complex manipulations.replace
action, ensure that the replace
parameter is correctly set to avoid unintended text replacements.move2head
and move2tail
actions to prioritize or deprioritize certain parts of your text, which can be useful for text prompts in AI art generation.class_type
property.class_type
property correctly set.{class_type}
does not exist."© Copyright 2024 RunComfy. All Rights Reserved.