SPLIT_STRING is make a table with using a delimiter from string value.
There output the all value become string value in table.
split(string, delimiter, delimiter-2d)
a=split('1 a 20 split_test --------',' ') for v in all(a) do print(v) end a=split('1 2 3;a b c;this is split',' ',';') for b in all(a) do for v in all(b) do print(v) end end
Thanks for inspiring me to write this, which splits on any number of delimiters, producing a that-many-dimensional array: https://github.com/sparr/pico8lib/blob/master/strings.p8#L194
[Please log in to post a comment]