Dogi Is there a way to split a string easily by the ","? for example "apple,hedgehog" returns split[1] = apple split[2] = hedgehog since i didnt find string.split() here
cos00kun Sorry, I didn't fully understand. Want to split 2 separate strings separately? Or do you want to separate the two strings with a comma?
Samir If you want separate a string to 2 other strings using a delimiter character this should work : line = "one, two, three!" for word in string.gmatch(line, "[^,]+") do print(word) end