Translations:Extension:Scribunto/Lua reference manual/484/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.