ComfyUI  >  Nodes  >  ymc-node-suite-comfyui >  search prompt (adv)

ComfyUI Node: search prompt (adv)

Class Name

text-util-prompt-adv-search

Category
Ymc Suite/text-util
Author
YMC (Account age: 2735 days)
Extension
ymc-node-suite-comfyui
Latest Updated
5/22/2024
Github Stars
0.0K

How to Install ymc-node-suite-comfyui

Install this extension via the ComfyUI Manager by searching for  ymc-node-suite-comfyui
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ymc-node-suite-comfyui 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

search prompt (adv) Description

Versatile tool for advanced text manipulation tasks, including search, delete, move, replace, and clean text prompts efficiently.

search prompt (adv):

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.

search prompt (adv) Input Parameters:

text

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.

action

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.

replace

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.

search prompt (adv) Output Parameters:

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 prompt (adv) Usage Tips:

  • Use the search action to verify the presence of specific text patterns before performing more complex manipulations.
  • When using the replace action, ensure that the replace parameter is correctly set to avoid unintended text replacements.
  • Utilize the move2head and move2tail actions to prioritize or deprioritize certain parts of your text, which can be useful for text prompts in AI art generation.

search prompt (adv) Common Errors and Solutions:

"Cannot execute because a node is missing the class_type property."

  • Explanation: This error occurs when the node configuration is incomplete or incorrect, missing the class_type property.
  • Solution: Ensure that all nodes in your configuration have the class_type property correctly set.

"Cannot execute because node {class_type} does not exist."

  • Explanation: This error indicates that the specified node type does not exist in the current setup.
  • Solution: Verify that the node type is correctly spelled and exists in the node suite. If necessary, update your node suite to include the missing node type.

"Prompt has no outputs"

  • Explanation: This error occurs when the prompt configuration does not produce any output.
  • Solution: Ensure that your prompt configuration includes at least one node that generates an output. Check the connections and settings of your nodes to confirm they are correctly configured to produce the desired output.

search prompt (adv) Related Nodes

Go back to the extension to check out more related nodes.
ymc-node-suite-comfyui
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.