Skip to content

SubString

mapping category: string no `||`

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

1position Mandatory — accepts: INT

Zero-based index of the first character of the substring.

2length Optional — 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

SubString(2, 5)

From index 10 to end of string

SubString(10)

See also

Regex, Trim, Truncate