Skip to content

right

Last N characters of a string.

v = right(text, num_chars)

Returns the rightmost num_chars characters from text. Default num_chars is 1.

right('hello world', 5) % 'world'
  • left — First N characters of a string.
  • mid — Substring starting at a given position.
  • rightb — Last N bytes of a string.