lua.wetgenes.csv.parse
Parse csv data from a chunk of text. Returns a simple table of lines where each line is a table of cells. An empty or missing string indicates an empty cell. The second return can be ignored or used to build a csv in a similar format to the one we read.
lines,opts = wcsv.parse(text)
lines,opts = wcsv.parse(text,opts)
Opts can be used to control how the parsing is performed pass in a seperator value to contol how a line is split.
lines,opts = wcsv.parse(text,{seperator=","})
Note that we also return the seperator we used within the second return and will guess the right one using the first line if one is not given.