I want to split a string into an array divided by multiple delimiters.
local delim = {",", " ", "."}
local s = "a, b c .d e , f 10, M10 , 20,5"
Result table should look like this:
{"a", "b", "c", "d", "e", "f", "10", "M10", "20", "5"}
Delimiters can be white spaces, commas or dots. If two delimiters like a white space and comma are coming after each other, they should be collapsed, additional whitespaces should be ignored.