Number of input and output field
| Number of input field |
: |
One |
| Number of output field |
: |
Three |
This transformation function is used to extract the head, middle, and tail parts of a text based on token positions.
The parameters of this function are:
- token
The regex token character used as a separator (comma , if not specified).
- head index
The ending token index for the head portion of the text. Indexing is 1-based. If the value is negative, the index is counted from right to left.
- tail index
The starting token index for the tail portion of the text. Indexing is 1-based. If the value is negative, the index is counted from right to left.
For example, when the input value is:
http://www.solusi247.com/index.php
| token | head index | tail index | Head | Middle | Tail |
| / | 1 | 3 | http: | /www.solusi247.com | index.php |
| / | 1 | -1 | http: | /www.solusi247.com | index.php |
| / | 1 | 4 | http: | /www.solusi247.com/index.html | null |