Description
Creates an array of substrings by splitting the input string based on one or more delimiters.
Attributes
Input
Delimiter - The defined delimiters used.
Input - The string or String variable to be split.
Common
ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.
Misc
DisplayName - Renames the activity.
Result - The array of substrings after the delimiters have been removed.
Example
- Create an Array of String variable and name it result.
- Add a Split activity inside the initial Sequence.
- In the Split Result field under Attributes, add the result variable.
- In the Split Input field, write "Robotic Process Automation".
- In the Split Delimiter, for this example, write c.
- Under the Split activity, add a Write Line activity.
- In the Write Line Text field, write result(0).ToString. This is to display the first instance of the result variable.
- Add your second Write Line activity.
- In the Write Line Text field, write result(1).ToString. This is to display the second instance of the result variable.
- Add your third Write Line activity.
- In the Write Line Text field, write result(2).ToString. This is to display the third instance of the result variable.
This should be the result in the Output panel: