substr(string, start [, length] )
Extract a substring from a string.
If no length is specified,
substr extracts all values up to the end of the
string. If the start position is negative, it is used as an offset from the end of the
string.Examples
foo = substr( "foobar", 1, 3 )
bar = substr( "foobar", -3 );