Returns a substring of a string. Alias for the standard library function string.sub.
See also Lua library functions.
Signature:
s = strsub("s", firstChar [, lastChar])
Arguments:
s- A string (string)firstChar- Position of a character in the string (can be negative to count backwards from the end of the string) (number)lastChar- Position of a later character in the string (can be negative to count backwards from the end of the string); defaults to -1 if omitted (number)
Returns:
s- The substring ofsstarting at the characterfirstCharand ending with the characterlastChar(string)
This function is defined in the Lua standard libraries