right()

Read(685) Label: string, right, substring,

Description:

Get a substring of a string ending at the rightmost side.

Syntax:

right(s,n)

Note:

Get the substring with the length of n ending at the rightmost side of string s. If n<0, the substring’s length is the sum of source string’s length and the value of n.

Parameter:

s

Source string from which you get the substring

n

The length of the substring

Return value:

String

Example:

right("abced",2)

"ed"

right("abced",-2)

"ced"

Related function:

left()

mid()