Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Split(s, delimiter)
- result = {};
- for match in (s..delimiter):gmatch("(.-)"..delimiter) do
- table.insert(result, match);
- end
- return result;
- end
- split_string = Split("Quarry,30,30", ",")
- print(split_string[1])
Add Comment
Please, Sign In to add comment