Module:ExplodeString

From Australian Enthusiasts Wiki
Revision as of 11:10, 27 March 2022 by TheDragonFire123 (talk | contribs) (Created page with "local p = {} function p.explode_string(s, delimiter) result = {}; for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match); en...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:ExplodeString/doc

local p = {}

function p.explode_string(s, delimiter)
    result = {};
    for match in (s..delimiter):gmatch("(.-)"..delimiter) do
        table.insert(result, match);
    end
    return result
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.