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 parameters | Input parameter type | Description |
|---|---|---|
| Text to Convert | any | Content to split. Lists are joined with newline characters; other values are converted to strings |
| Separator Type | enum | Standard Separator or Custom Separator |
| Standard Separator | enum | Space, Newline, or Tab. Required when Separator Type is Standard Separator |
| Custom Separator | any | Custom separator converted to a string at runtime. Required when Separator Type is Custom Separator |
| Regex Separator | bool | This parameter is only required when Separator Type is Custom Separator. When True, the custom separator will be processed as a regular expression. |
| Remove Empty Items | bool | Whether to filter blank items in split results |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Split Result | list[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.