ComfyUI > Nodes > Basic data handling > search groups (data list)

ComfyUI Node: search groups (data list)

Class Name

Basic data handling: RegexSearchGroupsDataList

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

search groups (data list) Description

Extracts specific text groups from strings using regex for efficient data processing.

search groups (data list):

The "Basic data handling: RegexSearchGroupsDataList" node is designed to facilitate the extraction of specific groups of text from a string using regular expressions. This node is particularly useful when you need to identify and retrieve multiple segments of text that match a given pattern within a larger string. By leveraging the power of regular expressions, this node allows you to efficiently search for patterns and return a list of matched groups, making it an invaluable tool for text processing and data extraction tasks. Whether you're working with complex data strings or simple text, this node simplifies the process of isolating and handling specific text segments, enhancing your ability to manipulate and analyze string data effectively.

search groups (data list) Input Parameters:

string

The string parameter is the text input in which you want to search for patterns. It serves as the source data that the node will process to find matching groups based on the specified regular expression pattern. There are no minimum or maximum values for this parameter, as it can be any string of text. The effectiveness of the node's operation heavily depends on the content of this string, as it determines the context in which the pattern is searched.

pattern

The pattern parameter is a regular expression that defines the specific pattern you want to search for within the input string. This pattern is crucial as it dictates the criteria for matching text segments. Regular expressions are powerful tools that allow you to specify complex search patterns, including character classes, quantifiers, and groupings. There are no default values for this parameter, and it must be provided by the user to perform the search operation. The accuracy and relevance of the output depend on how well this pattern is crafted to match the desired text segments.

search groups (data list) Output Parameters:

LIST

The output parameter is a LIST that contains the groups of text that match the specified pattern within the input string. Each element in the list corresponds to a group captured by the regular expression. If the pattern includes multiple groups, each group will be represented as a separate element in the list. If no matches are found, the node returns an empty list. This output is essential for extracting and utilizing specific segments of text from the input string, enabling further processing or analysis.

search groups (data list) Usage Tips:

  • Ensure that your regular expression pattern is correctly defined to capture the desired groups. Use online regex testers to validate your pattern before using it in the node.
  • When dealing with complex strings, consider breaking down your pattern into smaller, manageable parts to ensure accuracy and ease of debugging.

search groups (data list) Common Errors and Solutions:

Invalid regular expression

  • Explanation: This error occurs when the provided pattern is not a valid regular expression.
  • Solution: Double-check the syntax of your regular expression. Use online tools to test and validate your pattern before applying it in the node.

No match found

  • Explanation: The pattern did not match any groups in the input string.
  • Solution: Review your pattern and ensure it aligns with the structure of the input string. Adjust the pattern to better fit the text you are working with.

search groups (data list) 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.

search groups (data list)