ComfyUI Node: test

Class Name

Basic data handling: RegexTest

Category
Basic/STRING/regex
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

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

Run ComfyUI Online

test Description

The RegexTest node checks if a regex pattern matches a string, returning a boolean for pattern presence.

test:

The "Basic data handling: RegexTest" node is designed to evaluate whether a specified regular expression pattern matches any part of a given input string. This node is particularly useful for quickly verifying the presence of patterns within text, which can be beneficial in various text processing and data validation tasks. By returning a boolean value, it provides a straightforward way to determine if the pattern exists in the string, allowing you to make decisions based on the presence or absence of specific text patterns. This functionality is essential for tasks that require pattern recognition, such as filtering, searching, or validating text data.

test Input Parameters:

string

The string parameter represents the input text that you want to search for a pattern match. It is the content against which the regular expression will be tested. This parameter is crucial as it determines the context in which the pattern is evaluated. There are no specific minimum or maximum values for this parameter, as it can be any string of text.

pattern

The pattern parameter is the regular expression that you want to test against the input string. It defines the specific sequence of characters that you are looking for within the string. The pattern can be as simple or complex as needed, depending on the text patterns you wish to identify. Like the string parameter, there are no specific constraints on the pattern's length or complexity.

test Output Parameters:

BOOLEAN

The output of the node is a boolean value, which indicates whether the specified pattern was found within the input string. A True value signifies that the pattern matches some part of the string, while a False value indicates no match was found. This output is crucial for decision-making processes where the presence or absence of a pattern determines subsequent actions.

test Usage Tips:

  • Use simple patterns for straightforward text searches, such as finding specific words or numbers within a string.
  • For more complex pattern matching, leverage regular expression features like character classes, quantifiers, and anchors to refine your search criteria.
  • Test your regular expressions using online regex testers to ensure they behave as expected before using them in the node.

test Common Errors and Solutions:

Invalid regular expression

  • Explanation: This error occurs when the pattern provided is not a valid regular expression.
  • Solution: Double-check the syntax of your regular expression to ensure it follows the correct format. Use online regex validators to test and correct your pattern.

Pattern not found

  • Explanation: The node returns False when the specified pattern does not match any part of the input string.
  • Solution: Verify that the pattern accurately represents the text you are trying to match. Adjust the pattern to better fit the expected text structure or content.

test Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

test