Visit ComfyUI Online for ready-to-use ComfyUI environment
Determines if regex pattern is in string for pattern matching and text validation, aiding in complex string comparisons.
The LogicUtil_LogicGateCompareString
node is designed to determine if a specified regular expression (regex) pattern is found within a given string. This node is particularly useful for tasks that require pattern matching or text validation, such as checking if a string contains a specific sequence of characters or validating input formats. By leveraging the power of regular expressions, this node provides a flexible and powerful way to perform complex string comparisons, making it an essential tool for AI artists who need to automate text-based logic in their workflows.
This parameter represents the regular expression pattern that you want to search for within the input string. Regular expressions are a powerful tool for matching patterns in text, allowing you to specify complex search criteria. The default value is an empty string (""
), which means no pattern is specified. You can customize this parameter to match any pattern you need, such as specific words, sequences of characters, or more complex patterns.
This parameter is the string in which the node will search for the specified regex pattern. The default value is an empty string (""
). This input string is the text that will be analyzed to determine if it contains the pattern defined by the regex
parameter. You can provide any string value here, and the node will return whether the pattern is found within this string.
The output of this node is a boolean value (True
or False
). It indicates whether the specified regex pattern was found within the input string. If the pattern is found, the output will be True
; otherwise, it will be False
. This boolean output can be used in subsequent nodes to control the flow of logic based on the presence or absence of the pattern in the input string.
input2
) is empty, so no pattern matching can be performed.input2
parameter to enable pattern matching.© Copyright 2024 RunComfy. All Rights Reserved.