Module:SplitString
function mw.ustring:split( inSplitPattern )
local outResults = {}
local theStart = 1
local theSplitStart, theSplitEnd = mw.ustring.find( self, inSplitPattern, theStart )
while theSplitStart do
table.insert( outResults, mw.ustring.sub( self, theStart, theSplitStart-1 ) )
theStart = theSplitEnd + 1
theSplitStart, theSplitEnd = mw.ustring.find( self, inSplitPattern, theStart )
end
table.insert( outResults, mw.ustring.sub( self, theStart ) )
return outResults
end