Creating arrays in Lua from list returned by gmatch
snippet in lua

Creating arrays in Lua from list returned by gmatch

user3633

local t = {}
for i in S:gmatch("([^,%s]+)") do  
    t[#t + 1] = i
end