Using Split action

Use the Split action to split the specified string into multiple strings and store the output in a list variable.

Procedure

To split a string into multiple strings, perform these steps:

  1. In the Actions palette, double-click or drag the Split action from the String package.
  2. In the Source string field, specify the source string.
  3. In the Delimiter field, specify the character to split the string.
    For example, comma (,), semicolon (;), pipe (|), slash (/ \), newline character (\n), or space.

    In the delimiter text box, the newline character is not accepted for the Enter key as a line break. In that case, you can either press F2 and select Enter - String from String section or input the $String:Enter$ variable.

  4. In the Delimiter is field, select one of the options:
    • Case sensitive: The delimiter is case-sensitive.
    • Not case sensitive: The delimiter is not case-sensitive.
  5. In the Split into substrings field, select one of the options:
    • All possible: Splits the source string into as many substrings as possible.

      For example, if the original string is a,b,c,d, each character becomes a substring.

    • Only: Limits the number of substrings.

      For example, if the original string is a,b,c,d, and you enter 3, the output is three strings: a, b, and c,d.

  6. In the Assign the output to list variable field, specify the list variable.
  7. Click Save.