ComfyUI > Nodes > Image Filter > Split String by Commas

ComfyUI Node: Split String by Commas

Class Name

Split String by Commas

Category
image_filter/helpers
Author
chrisgoringe (Account age: 4350days)
Extension
Image Filter
Latest Updated
2025-04-01
Github Stars
0.04K

How to Install Image Filter

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

Split String by Commas Description

Efficiently splits strings based on delimiters for text data processing, ensuring clean outputs for structured data tasks.

Split String by Commas:

The Split String by Commas node is designed to efficiently divide a given string into multiple segments based on specified delimiters, such as commas, vertical bars, or carets. This node is particularly useful for processing and organizing text data, allowing you to break down complex strings into manageable parts. By automatically trimming whitespace from the beginning and end of each segment, it ensures clean and precise outputs. This functionality is essential for tasks that require parsing and analyzing structured text data, making it a valuable tool for AI artists who need to manipulate and interpret textual information within their creative workflows.

Split String by Commas Input Parameters:

string

This parameter represents the input string that you wish to split. It is the main text data that will be divided into segments based on the specified delimiter. The function of this parameter is to provide the raw text that needs processing. There are no minimum or maximum values for this parameter, but it defaults to an empty string if not specified. The input string's content directly impacts the node's execution, as it determines the number and content of the resulting segments.

split

The split parameter allows you to specify the delimiter used to divide the input string. You can choose from a comma (,), a vertical bar (|), or a caret (^). This parameter is optional, and if not provided, it defaults to a comma. The choice of delimiter affects how the input string is parsed and the resulting segments. By selecting the appropriate delimiter, you can tailor the node's behavior to suit different text structures and ensure accurate segmentation.

Split String by Commas Output Parameters:

STRING

The first five output parameters are individual string segments resulting from the split operation. Each of these parameters represents a portion of the input string, divided based on the specified delimiter. If the input string contains fewer than five segments, the remaining outputs will be empty strings. These outputs are crucial for breaking down complex text into simpler components, allowing for easier analysis and manipulation.

STRING (as list)

The final output parameter is a list containing all the segments derived from the input string. This list provides a comprehensive view of the split operation's results, capturing all segments regardless of their number. It is particularly useful for scenarios where you need to process or iterate over all segments collectively, offering flexibility in handling the parsed data.

Split String by Commas Usage Tips:

  • Use the split parameter to customize the delimiter according to the structure of your input string, ensuring accurate segmentation.
  • If you expect more than five segments, consider using the list output to capture all parts of the split string for further processing.

Split String by Commas Common Errors and Solutions:

Input string is empty

  • Explanation: The input string parameter is empty, resulting in no segments to split.
  • Solution: Ensure that the input string contains text data before executing the node.

Invalid delimiter

  • Explanation: The specified delimiter is not one of the allowed options (,, |, ^).
  • Solution: Verify that the delimiter is correctly set to one of the supported characters.

Split String by Commas Related Nodes

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