lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-- 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