Visit ComfyUI Online for ready-to-use ComfyUI environment
Split text string into parts using specified delimiter for efficient data organization and manipulation.
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.
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.
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.
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.
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.
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.
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.
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.
text
parameter to enable the node to perform the split operation.© Copyright 2024 RunComfy. All Rights Reserved.