Lua Methods Reference > General Methods > parse_csv

parse_csv
The parse_csv method parses a string of comma-separated values into individual strings. The method understands quoted values (such that parsing 'foot, "leg, torso", elbow' produces three values) and ignores white space around delimiters.
Syntax
parse_csv( input [, delimiter ] )
Arguments
 
Returns
(Strings). You can put them in a table like this:
local results = { parse_csv("cat,tree,house", ",") };