Search found 2 matches

by DuskyByte
Thu Apr 15, 2021 3:42 pm
Forum: Help Forum
Topic: Help converting string into seperate strings
Replies: 4
Views: 614

Re: Help converting string into seperate strings

For those looking for a solution to this same issue. This is how I got it to work: delim = {",", "."} s = matches[2]:gsub(" and ", ", ") s = s:gsub(", ", ",") p = "[^" .. table.concat(delim) .. "]+" for w in s:gmatch(p) ...
by DuskyByte
Mon Apr 12, 2021 7:41 pm
Forum: Help Forum
Topic: Help converting string into seperate strings
Replies: 4
Views: 614

Help converting string into seperate strings

Trying to turn what I get back from the who list in matches[2] into a table. The list looks like this: Chris, David, Edward and Frank. However, when I run it through the code I get something like: Chris D vi E w r Fr k Thoughts? Code I am using for testing now: delim = {",", "and"...