Get an array from a string of numbers separated with comma
snippet in lua

Get an array from a string of numbers separated with comma

user6040

for match in s:gmatch("([%d%.%+%-]+),?") do
  output[#output + 1] = tonumber(match)
end