function Util.SplitPrioritizedDelimeter(t,N)for M,p in ipairs(N)do if t:find(p)or M==#N then return Util.SplitStringSimple(t,p)end end end
--- Splits a string by a single delimeter chosen from the given set.
-- The first matching delimeter from the set becomes the split character.
function Util.SplitPrioritizedDelimeter(text, delimeters)
	for i, delimeter in ipairs(delimeters) do
		if text:find(delimeter) or i == #delimeters then
			return Util.SplitStringSimple(text, delimeter)
		end
	end
end
