Returns a new substring from the interval [start, end) - inclusive, exclusive.
Positions are zero-indexed.
For empty or invalid out-of-bounds values returns an empty string "" (in Lua).
For start>end returns substring beginning with start until the actual end of string.
For start<0 returns an empty string.
Returns a new substring from the interval [start, end) - inclusive, exclusive. Positions are zero-indexed. For empty or invalid out-of-bounds values returns an empty string "" (in Lua).
For start>end returns substring beginning with start until the actual end of string. For start<0 returns an empty string.
Examples (Lua):