SubString¶
Returns a substring of the input string.
Returns the substring beginning at the given position with the given length. If the requested range extends past the end of the input, the available characters are returned.
Parameters¶
- 1 —
positionMandatory — accepts: INT -
Zero-based index of the first character of the substring.
- 2 —
lengthOptional — accepts: INT -
Length of the substring. If omitted, the substring runs from the starting position to the end of the input.
Input type¶
STRING
Output type¶
STRING
Examples¶
5 characters starting at index 2
From index 10 to end of string