Description

Return a specified number of characters from the end of a string

Syntax

right(text, length)

Parameters

Input ParameterTypeDescription
textstringThe input string
lengthnumberThe number of characters to return from the end

Return value

Type
string

Sample

ExampleResultDescription
right("abcd", 2)"cd"The substring containing the rightmost characters
right("abcd", 5)"abcd"right function with length greater than the string length
right("", 5)""right function for an empty string

To view all the String functions, click here.