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:
| Parameter | Description |
|---|---|
| string exp | string to extract a the right-most n characters from |
| int exp | number of characters to return from the string |
Returns
string
Example
right("Hello", 2)
In this example, right returns "lo".