String Split ?

This wildcard is replaced with a part or section of a string, with its delimiter being a whgite space ( ). The input string is cut based on the split parameter, which can be a single value or a range. The split parameter can be positive or negative; a positive value cuts the string from the beginning, while a negative value cuts it from the end.

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 chosen either from left to right (using positive numbers, e.g., 0, 1, 2, 3, 4) or from right to left (using negative numbers, e.g., -1, -2, -3, -4).

For instance, -1 and -2 can be used to select strings from the right.

When the ":" sign is utilized, it becomes possible to specify a custom string range for both the left and right sides (as in the example 1:-1).

If a selection range is employed with ":" alone, the number 0 can be used to set the left range to the first string (e.g., 0), and -1 sets the right-side selection to the end of the string (e.g., 3).

Further examples:

  • Example 1: • Input --> {string.split.2.I Want to Split this string} • Output --> to

  • Example 2: • Input --> {string.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 --> {string.split.2:-2.I Want to Split this string} • Output --> To Split this •

  • Example 5: • Input --> {string.split.0:-2.I Want to Split this string} • Output --> I Want to Split this