Name

right — get n rightmost characters of a string

Synopsis

right ( in str string ,
in count integer );

Description

right returns the count rightmost characters of string str.

If count is zero an empty string '' is returned.

If length of str is less than count then a copy of the whole str is returned.

Examples

Example24.364.Simple Example

right('AbracadabrA',4) -> 'abrA'