leftback
Syntax: %leftback(string,fromend)
return the leftmost part of string until fromend characters from the end
Examples:
#SHOW %left("abcdef",2)
displays: ab
#SHOW %right("abcdef",2)
displays: cdef
#SHOW %leftback("abcdef",2)
displays: abcd
#SHOW %rightback("abcdef",2)
displays: ef
memory aid:
%left(anystring,anynumber) plus %right(anystring,anynumber) is "anystring"
%leftback(anystring,anynumber) plus %rightback(anystring,anynumber) is "anystring" |