User Guide : Using Content Extraction Language : Language Syntax and Examples : Right (strexpr,n)
 
Share this page             
Right (strexpr,n)
Returns the rightmost n characters of a string argument. The argument strexpr can be any string expression. The argument n is a Long expression indicating how many characters to return. It must be between 0 and approximately 65,500, inclusive. If n is 0, the return value is a zero-length string. If n is greater than or equal to the number of characters in strexpr, the entire string is returned. To find the number of characters in strexpr, use Length(strexpr).
Example
#This example returns the two rightmost characters of a variable called MyText:
Right(MyText, 2)