Path Split ?
This wildcard is replaced with a part or section of a string/path, with its delimiter being either a slash (/) or a backslash (). 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 employed in various ways.
{path.split.#.?}
For the following input (?) --> {path.split.0:2.\myserver\myfolder1\myfolder2\myfolder3}
The output is going to be --> \myserver\myfolder1
Advanced examples:
Example 1: • Input --> {path.split.2.\myserver\myfolder1\myfolder2\myfolder3} • Output --> myfolder1
Example 2: • Input --> {path.split.-3.\myserver\myfolder1\myfolder2\myfolder3} • Output --> myfolder1
Example 3: • Input --> {path.split.2:-1.\myserver\myfolder1\myfolder2\myfolder3} • Output --> myfolder1\myfolder2\myfolder3
Example 4: • Input --> {path.split.2:-2.\myserver\myfolder1\myfolder2\myfolder3} • Output --> myfolder1\myfolder2
Example 5: • Input --> {path.split.0:-2.\myserver\myfolder1\myfolder2\myfolder3} • Output --> \myserver\myfolder1\myfolder2