ComfyUI > Nodes > Basic data handling > find all (LIST)

ComfyUI Node: find all (LIST)

Class Name

Basic data handling: RegexFindallList

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

find all (LIST) Description

Extracts all non-overlapping regex pattern matches from a string into a list for text analysis.

find all (LIST):

The Basic data handling: RegexFindallList node is designed to efficiently extract all non-overlapping matches of a specified pattern from a given string, returning them as a list of strings. This node leverages regular expressions (regex), a powerful tool for pattern matching, to identify and retrieve specific sequences of characters within text. By using this node, you can automate the process of finding patterns such as numbers, words, or any custom-defined sequences, making it particularly useful for tasks that involve text analysis, data extraction, or preprocessing. Its primary goal is to simplify the extraction of multiple matches from text data, providing a straightforward and effective way to handle complex string operations without requiring deep technical expertise in regex.

find all (LIST) Input Parameters:

string

The string parameter is the text input in which the node will search for matches of the specified pattern. It serves as the source data for the regex operation. This parameter is crucial as it determines the context and content from which patterns will be extracted. There are no specific minimum or maximum values for this parameter, but it should be a valid string. The effectiveness of the node's operation heavily depends on the content of this string, as it directly influences the results of the pattern matching process.

pattern

The pattern parameter is a string that defines the regular expression pattern to be searched within the input string. This pattern dictates what sequences of characters the node will look for and extract. It is essential to construct this pattern accurately to ensure that the desired matches are found. The pattern can include various regex constructs, such as character classes, quantifiers, and anchors, to specify complex search criteria. There are no predefined limits on the complexity of the pattern, but it should be a valid regex expression. The pattern's design directly impacts the node's ability to identify and return the correct matches.

find all (LIST) Output Parameters:

LIST

The output parameter LIST is a collection of strings that represent all the non-overlapping matches found in the input string based on the specified pattern. This list provides a comprehensive view of all the sequences that match the regex criteria, allowing you to easily access and utilize these matches for further processing or analysis. The output is particularly valuable for tasks that require the aggregation of multiple data points from text, such as extracting all numbers, words, or specific patterns from a document. The list format ensures that each match is distinctly captured and can be individually accessed or manipulated as needed.

find all (LIST) Usage Tips:

  • To optimize the node's performance, ensure that your regex pattern is as specific as possible to avoid unnecessary matches and improve processing speed.
  • Use regex anchors like ^ and $ to match patterns at the start or end of the string, respectively, if you are only interested in matches at specific positions.
  • Test your regex pattern with sample data to ensure it captures all desired matches before applying it to larger datasets.

find all (LIST) Common Errors and Solutions:

Invalid regular expression

  • Explanation: This error occurs when the regex pattern provided is not a valid regular expression.
  • Solution: Review the pattern for syntax errors or unsupported constructs and correct them. Use online regex testers to validate your pattern before using it in the node.

No matches found

  • Explanation: This is not an error per se, but it indicates that the pattern did not match any part of the input string.
  • Solution: Verify that the pattern accurately represents the sequences you intend to match. Adjust the pattern to be more inclusive or specific as needed.

TypeError: expected string or bytes-like object

  • Explanation: This error occurs when the input string parameter is not a valid string or bytes-like object.
  • Solution: Ensure that the input provided to the string parameter is a valid string. Convert other data types to strings if necessary before using them as input.

find all (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.

find all (LIST)