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

  1. Create an Array of String variable and name it result.
  2. Add a Split activity inside the initial Sequence.
  3. In the Split Result field under Attributesadd the result variable.
  4. In the Split Input field, write "Robotic Process Automation".
  5. In the Split Delimiter, for this example, write c.
  6. Under the Split activity, add a Write Line activity.
  7. In the Write Line Text field, write result(0).ToString. This is to display the first instance of the result variable.
  8. Add your second Write Line activity.
  9. In the Write Line Text field, write result(1).ToString. This is to display the second instance of the result variable. 
  10. Add your third Write Line activity.
  11. 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: