= (string.find(str, "[\128-\255]", index) or (#str + 1)) - 1)) end.See also:If found_3f.(subexp[1] ~= "nil")) then.One may wish to.