Visit ComfyUI Online for ready-to-use ComfyUI environment
Parse and extract LoRA tags from text strings efficiently for AI artists using regular expressions.
The JNodes_LoraExtractor
node is designed to parse and extract specific text patterns from a given string, particularly focusing on identifying and isolating LoRA (Low-Rank Adaptation) tags. This node is highly beneficial for AI artists who work with text-based prompts that include LoRA tags, as it simplifies the process of extracting these tags for further processing or analysis. By using regular expressions, the node efficiently identifies text enclosed in angle brackets (<
and >
) and filters out those containing the keyword "lora". This functionality is crucial for managing and manipulating LoRA tags within larger text prompts, ensuring that only relevant tags are extracted and formatted for subsequent use.
The string
parameter is the input text from which the node will extract LoRA tags. This parameter accepts a multiline string, allowing you to input extensive text prompts that may contain multiple LoRA tags. The function of this parameter is to provide the raw text data that the node will process. The impact of this parameter on the node's execution is significant, as the accuracy and completeness of the extracted LoRA tags depend on the content of the input string. There are no minimum or maximum values for this parameter, but it defaults to an empty string if not provided.
The output parameter STRING
is a single string that contains all the extracted LoRA tags from the input text, each on a new line. This output is crucial as it provides a clean and organized list of LoRA tags that can be easily used for further processing or analysis. The interpretation of this output is straightforward: each line represents a LoRA tag that was found and extracted from the input string, ensuring that you have a clear and concise list of relevant tags.
<
and >
) to maximize the effectiveness of the extraction process.<lora:example>
.© Copyright 2024 RunComfy. All Rights Reserved.