powered by
Extract a substring from a given start position to the position determined by subtracting endDiff from the string length.
endDiff
substrEnd(x, start, endDiff)
A substring of the input character string.
A character string from which the substring is extracted.
The starting position for the substring extraction.
The difference to subtract from the string length to determine the end position.
substr()
substrEnd("12345", 1, 1) substrEnd("12345", 1, 2) substrEnd("12345", 2, 3)
Run the code above in your browser using DataLab