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

In particular, the call $1 returns a prefix of $s with length $j, and $2 returns a suffix of $s with length $i.