Skip to main content

Split Text into List

Command description

Splits text into a list with a standard or custom separator and saves the result as a variable.

Command Input Parameters

input parametersInput parameter typeDescription
Text to ConvertanyContent to split. Lists are joined with newline characters; other values are converted to strings
Separator TypeenumStandard Separator or Custom Separator
Standard SeparatorenumSpace, Newline, or Tab. Required when Separator Type is Standard Separator
Custom SeparatoranyCustom separator converted to a string at runtime. Required when Separator Type is Custom Separator
Regex SeparatorboolThis parameter is only required when Separator Type is Custom Separator. When True, the custom separator will be processed as a regular expression.
Remove Empty ItemsboolWhether to filter blank items in split results

Command Output Parameters

Output parametersOutput parameter typeDescription
Split Resultlist[str]Split text list

Note

When Regex Separator is True, Custom Separator is treated as a Python regular expression. Remove Empty Items removes empty strings and items containing only whitespace.

JSON workflow example

[
{
"ins": "Split Text into List",
"in": {
"Text to Convert": "'a,b,c'",
"Separator Type": "'Custom Separator'",
"Custom Separator": "','",
"Regex Separator": "False",
"Remove Empty Items": "True"
},
"out": {
"Split Result": "textList"
}
}
]

AI Workflow Generation Notes

  • Include Regex Separator only when Separator Type is Custom Separator.