## Split ### 1 See [this stackoverflow](https://stackoverflow.com/questions/1426954/split-string-in-lua) ```lua function mysplit(inputstr, sep) if sep == nil then sep = "%s" end local t = {} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end return t end ``` #### Notes