Module:Sandbox/JosephWharfe/sometest

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
local p = {}

function p.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
return p