String split function

BlitzMax Forums/BlitzMax Programming/String split function

Lol. It still works nearly the same, beaks, that example is just over-complicated since its doing quite alot at once. Simpler example:
Local a:TList=Split("Oooh this is a sentance, cool eh?",[" "])

For Local t$=EachIn a
	Print t
Next
If you want it exactly as before you can rename this function, to SplitToList for instance, and write a small function:
Function Split:String[](txt$, Splitters:String[])
	Local lst:Object[]=SplitToList(txt$,Splitters).ToArray()
	Local res:String[]=New String[lst.Length]
	For i=0 Until lst.Length
		res[i]=lst[i].ToString()
	Next
	Return res
End Function

Local B:String[]=Split("Hi, how are you?",[" "])

For Local i=0 Until B.Length
	Print B[i]
Next
Cant satisfy everyone eh ;) well, right now priority is my uses.