-- Windows XP SP2, Lua 5.1.4 local N = 1e5 local patt = "^\n?[^\n]*" .. ("\n[^\n]*"):rep(N-1) local subj = (("a"):rep(19).."\n"):rep(40000) subj:match(patt) --> terminated here; no error message print("OK") --> not printed -- Shmuel