I’m trying to split up file input I’m reading in from WWW data string. I would like to Split on a string rather than just a character. I know I can do something like:
var localdata : String = wwwfile.data;
// split string into array items based on "#" character
var locItems = localdata.Split( "#"[ 0 ] );
But I would like to do something like:
var localdata : String = wwwfile.data;
var splitter : String = "</>";
// split string into array items based on "</>" tag
var locItems = localdata.Split( splitter ???? );
.NET docs show this should be possible with an additional parameter of type System.StringSplitOptions but Unity doesn’t seem to be happy with this type.
Has anyone done this before and can give me a tip?
thanks!
-s