--- title: "right()" slug: "string-right" updated: 2026-08-17T08:12:17Z published: 2026-08-17T08:12:17Z canonical: "docs.lobstersoftware.com/string-right" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # right() This function returns the **b** rightmost characters of text **a**. See examples. ## Parameters | Parameter | Description | | --- | --- | | a | Text | | b | Length | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | bcabc | 3 | abc | | bcabc | 5 | bcabc | | bcabc | 6 | bcabc |