User Guide : Using Content Extraction Language : Language Syntax and Examples : Left (strexpr, n)
 
Share this page             
Left (strexpr, n)
This built-in function returns the leftmost 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 leftmost characters of a variable called MyText:
Left(MyText, 2)