On 01/12/2012 14:59, Alexandre Rion wrote:
or
if str:find('^'..sub) then ... end
Right, but it's not cheaper or simpler than just creating a substring str:sub(i,
i-1+len) and then comparing it = to sub, is it? We'd need a "find_at" or rather
check_at or something like that.
Denis