ExCellerate.Functions.General.Right (excellerate v0.4.0)

Copy Markdown View Source

Returns the last n characters from a string.

When called with one argument, returns the last character. With two arguments, returns the last n characters.

Examples

right('Hello World', 5)  'World'
right('Hello')           'o'
right('Hi', 10)          'Hi'