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

See mw.ustring.match for a similar function in which the pattern is extended as described in Ustring patterns and the  offset is in characters rather than bytes.