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

Note that a string in Lua begins at index 1. Also, when using this function, the indices at both ends are inclusive.