Split String
Last updated
Last updated
Divides a text string into smaller parts based on a separator character or string. This is useful for breaking comma-separated lists, space-separated words, or any delimited text into individual items.
value
The text to split into parts
String
Yes
separator
The character or string that marks where to split
String
No
value
An array containing the separated parts
List
Drag the Split String node into your graph.
Connect a text string (like "red,green,blue"
) to the "value" input.
Set the "separator" to the character that divides your items (like ","
).
The output will be a list of individual items (["red", "green", "blue"]
).
The default separator is a comma (,
).
If the separator is not found in the input string, the output will be an array with just the original string.
Tag Processing: Split a list of tags into individual items for filtering or display.
Data Parsing: Extract individual values from formatted text like CSV data.
Path Handling: Break file paths or URLs into their component parts.
: For the reverse operation—combining array items into a single string.
: For searching through the resulting array of items.