ComfyUI > Nodes > Comfyroll Studio > 🔤 CR Split String

ComfyUI Node: 🔤 CR Split String

Class Name

CR Split String

Category
🧩 Comfyroll Studio/🛠️ Utils/🔤 Text
Author
Suzie1 (Account age: 2158days)
Extension
Comfyroll Studio
Latest Updated
2024-06-05
Github Stars
0.49K

How to Install Comfyroll Studio

Install this extension via the ComfyUI Manager by searching for Comfyroll Studio
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyroll Studio 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🔤 CR Split String Description

Split text string into parts using specified delimiter for efficient data organization and manipulation.

🔤 CR Split String:

The CR Split String node is designed to split a given text string into multiple parts based on a specified delimiter. This node is particularly useful when you need to break down a long string into smaller, more manageable segments for further processing or analysis. By providing a delimiter, you can control how the text is divided, making it easier to handle structured data or separate different components of a string. This node is essential for tasks that involve text manipulation, allowing you to efficiently parse and organize text data.

🔤 CR Split String Input Parameters:

text

The text parameter is the main input for the node, representing the string that you want to split. This parameter is required and should be a single-line string. The default value is "text". The content of this string will be divided into parts based on the specified delimiter.

delimiter

The delimiter parameter is an optional input that defines the character or sequence of characters used to split the text string. By default, the delimiter is set to a comma (,). If no delimiter is provided, the node will split the text based on spaces. This parameter allows you to customize how the text is divided, making it flexible for different types of text data.

🔤 CR Split String Output Parameters:

string_1

The string_1 output is the first segment of the split text. If the text contains fewer segments than expected, this output will be an empty string. This output helps you capture the first part of the divided text for further use.

string_2

The string_2 output is the second segment of the split text. Similar to string_1, if there are fewer segments, this output will be an empty string. This output allows you to access the second part of the divided text.

string_3

The string_3 output is the third segment of the split text. If the text does not have enough segments, this output will be an empty string. This output is useful for capturing the third part of the divided text.

string_4

The string_4 output is the fourth segment of the split text. If there are fewer than four segments, this output will be an empty string. This output helps you obtain the fourth part of the divided text.

show_help

The show_help output provides a URL to the documentation or help page for the CR Split String node. This output is useful for users who need additional information or guidance on how to use the node effectively.

🔤 CR Split String Usage Tips:

  • Use a specific delimiter that matches the structure of your text to ensure accurate splitting.
  • If your text contains spaces, consider using a different delimiter to avoid unintended splits.
  • Combine this node with other text processing nodes to create a comprehensive text manipulation workflow.

🔤 CR Split String Common Errors and Solutions:

"Delimiter not found in text"

  • Explanation: The specified delimiter does not exist in the input text, resulting in no splits.
  • Solution: Ensure that the delimiter you provide is present in the text. Double-check the delimiter for any typos or mismatches.

"Input text is empty"

  • Explanation: The input text parameter is empty, so there is nothing to split.
  • Solution: Provide a valid text string in the text parameter to enable the node to perform the split operation.

"Too few segments"

  • Explanation: The input text does not contain enough segments to fill all output parameters.
  • Solution: This is not necessarily an error but an expected behavior. If you need more segments, ensure your text contains the appropriate number of delimiters.

🔤 CR Split String Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.