strsub(<sString>, <iStart> [, <iEnd>])
Description (from LUA 4 Manual: 6.2 String Manipulation
"Returns another string, which is a substring of <sString>, starting at <iStart> and running until <iEnd>; <iStart> and <iEnd> may be negative, If <iEnd> is absent, then it is assumed to be equal to -1 (which is the same as the string length). In particular, the call strsub(s,1,j) returns a prefix of s with length j, and the call strsub(s, -i) returns a suffix of s with length i."
Example
Arguments
<sString>: the string to return the substring of.
<iStart>: the position in <sString> to start the substring.
<iEnd>: the position in <sString> to end the substring.
Related Functions