Translations:Extension:Scribunto/Lua reference manual/1712/en

Returns the substring of $s that starts at $i and continues until $j; $i and $j can be negative. If $j is nil or omitted, -1 is used.