Split String
Use the Split String activity to split a specified string into multiple parts around matches of the given delimiters. This allows you to extract only the meaningful text from a string.
You can add multiple delimiters in the Delimiter Text field. Common delimiter characters include commas (,), semicolons (;), single or double quotation marks (’ or “), square or curly braces ([] or {}), pipes (|), and forward or back slashes (/ or \). You can also check the Use Regexp in Delimiters check box to enter a regular expression as a delimiter.
You can manually enter the Input String and Delimiter Text values or use variables such as the output from other workflow activities, sub-workflows, or atomic actions that occur earlier in the workflow.
Usage
Complete the following properties to use this activity:
- Split String - Enter the following information:
- Input String - Enter the input string or click the Variable Reference icon to choose a variable.
- Remove Empty String from Result Set - Check the check box to remove the empty spaces in the output.
- Use Regexp in Delimiters - Check this check box to use regular expressions as delimiters.
- Split Options - Click Add and enter the appropriate text in the Delimiter Text field or click the Variable Reference icon to choose a variable.
After this activity completes, the split text will be located in the Parts table in the activity properties.