ComfyUI > Nodes > TrentNodes > Filename Extractor

ComfyUI Node: Filename Extractor

Class Name

FilenameExtractor

Category
Trent/Utilities
Author
TrentHunter82 (Account age: 0days)
Extension
TrentNodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install TrentNodes

Install this extension via the ComfyUI Manager by searching for TrentNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter TrentNodes 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

Filename Extractor Description

Extracts three-letter, three-digit patterns (e.g., CRC040) from filenames in ComfyUI.

Filename Extractor:

The FilenameExtractor is a specialized node within the ComfyUI framework designed to streamline the process of extracting specific segments from filenames. Its primary function is to identify and extract a pattern consisting of three uppercase letters followed by three digits (e.g., CRC040) from a given filename. This node is particularly useful for users who need to organize or categorize files based on embedded codes within filenames. By automating the extraction process, it saves time and reduces the potential for human error, ensuring that you can efficiently manage and utilize your file collections. The node is part of the Trent/Utilities category, highlighting its role in enhancing file management capabilities within the ComfyUI environment.

Filename Extractor Input Parameters:

filename

The filename parameter is a required input that accepts the full filename or path as a string. This parameter serves as the source from which the node will attempt to extract the desired pattern. The input should be a valid string representing either a complete file path or just the filename itself. There are no specific minimum or maximum values for this parameter, but it is essential that the input string contains the pattern of interest if extraction is desired. The default value is an empty string, and it does not support multiline input.

Filename Extractor Output Parameters:

extracted_name

The extracted_name output provides the portion of the filename that includes everything up to and including the identified pattern. This output is crucial for users who need to isolate specific segments of filenames for further processing or categorization.

pattern_found

The pattern_found output indicates the specific pattern that was identified within the filename. If the pattern is found, it returns the code (e.g., CRC040); otherwise, it returns "Pattern not found." This output helps users verify whether the desired pattern was successfully extracted.

full_filename

The full_filename output returns the original filename provided as input. This output ensures that users have access to the complete filename for reference or further operations, maintaining a link between the extracted data and its source.

Filename Extractor Usage Tips:

  • Ensure that the filenames you input contain the pattern of three uppercase letters followed by three digits to achieve successful extraction.
  • Use this node to automate the organization of files by extracting and categorizing them based on embedded codes within their filenames.

Filename Extractor Common Errors and Solutions:

Pattern not found

  • Explanation: This error occurs when the specified pattern of three uppercase letters followed by three digits is not present in the provided filename.
  • Solution: Verify that the input filename contains the correct pattern. If necessary, adjust the filename to include the pattern or check if the correct file was selected.

Invalid filename input

  • Explanation: This error might occur if the input provided is not a valid string or if it is empty.
  • Solution: Ensure that the input is a valid string representing a filename or path. Double-check that the input is not left empty and is correctly formatted.

Filename Extractor Related Nodes

Go back to the extension to check out more related nodes.
TrentNodes
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.

Filename Extractor