Split
Splits input strings by specified separator.
Input/Output
Number of Connections: Min: 1/Max:2
| Input | Data Type | Description |
| Input1 | String | String |
| Input2 | String | Sets the Separator property. (optional) |
| Output | Data Type | Description |
| Output1 | String | Splitted strings |
Property
| Name | Property Type | Description |
| Separator | string |
Specifies a separator
You can use the following meta character by a separtor.
| Meta Character | Control Character |
| \t | TAB |
| \r | CR |
| \n | LF |
|
| Count | int | Specifies output count |
| SearchDir | choice |
Specifies the direction to split.
| Left | - |
From left.
|
| Right | - |
From right.
|
|
| SeparatorMode | choice |
Specifies option of separator.
| None | - |
Don't include a separator in output.
|
| Left | - |
Include a separator with left part splitted.
|
| Right | - |
Include a separator with right part splitted.
|
|
Output count and Separator
When the number of part splitted by a separator is less than the number of output, empty string is output.
When the number of part splitted by a separator is more than the number of output, all strings are included in the last output in the case of searching from left.
When the number of part splitted by a separator is more than the number of output, all strings are included in the first output in the case of searching from right.
Example
| Property | |
| Input | abc_def_ghi | Separator | _ | Output1 | abc |
| Count | 2 | Output2 | def_ghi |
| SearchDir | Left | |
| SeparatorMode | None | |
| Property | |
| Input | aa,bb,cc,dd | Separator | , | Output1 | aa, |
| Count | 4 | Output2 | bb, |
| SearchDir | Right | Output3 | cc, |
| SeparatorMode | Left | Output4 | dd |