Built-in Functions → right

right() is a string function that returns the right-most n characters where n is set in the int exp argument.

Signature

right(string exp, int exp)

The following table illustrates the right() parameters:

ParameterDescription
string expstring to extract a the right-most n characters from
int expnumber of characters to return from the string

Returns

string

Example

right("Hello", 2)

In this example, right returns "lo".