Module:Sandbox/JosephWharfe/sometest

Revision as of 00:41, 10 April 2020 by imported>Jw2199
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/JosephWharfe/sometest/doc

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