String Split ?
This wildcard is replaced with a part or a section of a string. The wildcard is used in the following ways.
{string.split.?}
For the following input (?) --> {string.split.0:2.I Want to Split this string}
The output is going to be --> I Want to
The split character is the blank space
Individual strings can be selected from left to right (with positive numbers i.e 0,1,2,3,4) or right to left (negative numbers i.e -1,-2,-3,-4) (example -1,-2)
When the : sign is used, it is possible to select a custom string range for the left and right side (example 1:-1).
When a selection range is used (:), the number 0 can be used to set the left range to the first string (example 0)
-1 sets the right side selection to the end of the string (example 3)
Advanced examples:
Example 1: • Input --> {path.split.2.I Want to Split this string} • Output --> to
Example 2: • Input --> {path.split.-3.I Want to Split this string} • Output --> Split
Example 3: • Input --> {string.split2:-1.I Want to Split this string} • Output --> to Split this string
Example 4: • Input --> {path.split.2:-2.I Want to Split this string} • Output --> To Split this •
Example 5: • Input --> {path.split.0:-2.I Want to Split this string} • Output --> I Want to Split this
Last updated