ComfyUI > Nodes > DJZ-Nodes > BracketCleaner

ComfyUI Node: BracketCleaner

Class Name

BracketCleaner

Category
Custom-Nodes
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

BracketCleaner Description

Streamline text processing by removing content within brackets for cleaner, more readable outputs.

BracketCleaner:

The BracketCleaner node is designed to streamline and enhance text processing by removing content enclosed within brackets from a given text input. This node is particularly useful for cleaning up text data where bracketed information is either unnecessary or distracting, such as in scripts, transcriptions, or any text where annotations or asides are enclosed in brackets. By focusing on the removal of bracketed content, the BracketCleaner helps in producing cleaner and more readable text outputs, which can be beneficial for further text analysis or presentation. The node operates by identifying and eliminating all text within parentheses, ensuring that the remaining content is concise and free from unwanted bracketed information.

BracketCleaner Input Parameters:

text

The text parameter is the primary input for the BracketCleaner node, where you provide the text string that you wish to process. This parameter accepts a multiline string, allowing you to input large blocks of text that may contain multiple paragraphs. The function of this parameter is to serve as the source from which bracketed content will be removed. The impact of this parameter on the node's execution is direct, as the quality and structure of the input text will determine the effectiveness of the bracket removal process. There are no specific minimum or maximum values for this parameter, but it should be a valid string containing the text you want to clean.

BracketCleaner Output Parameters:

STRING

The output parameter, labeled as STRING, represents the cleaned version of the input text, with all bracketed content removed. This output is crucial as it provides a refined text that is free from any unnecessary bracketed information, making it more suitable for reading, analysis, or further processing. The cleaned text is returned as a single string, maintaining the original structure of the input text but without the bracketed sections. This output is particularly valuable for users who need a streamlined version of their text data for various applications.

BracketCleaner Usage Tips:

  • To maximize the effectiveness of the BracketCleaner node, ensure that your input text is well-formatted and that any content you wish to retain is not enclosed in brackets. This will help in preserving the essential parts of your text while removing only the unwanted bracketed information.
  • Use the BracketCleaner node as a preprocessing step before conducting text analysis or generating reports, as it can help in reducing noise and focusing on the core content of your text data.

BracketCleaner Common Errors and Solutions:

No specific error messages

  • Explanation: The BracketCleaner node does not have specific error messages documented in the provided context. However, general issues may arise if the input text is not properly formatted or if there are unexpected characters that disrupt the bracket removal process.
  • Solution: Ensure that your input text is correctly formatted and free from syntax errors. If you encounter issues, check the text for any irregularities or unsupported characters that may affect the node's performance.

BracketCleaner Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.