Iterating over the character of a string by character (this is what a regular expression is all the same). When you find the splitter, then release the substring.
pseudo code
int hold, counter; List<String> afterSplit; string toSplit for(hold = 0, counter = 0; counter < toSplit.Length; counter++) { if(toSplit[counter] = ) { afterSplit.Add(toSplit.Substring(hold, counter)); hold = counter; } }
This type of C #, but not really. Obviously, select the appropriate function names. In addition, I think there might be an offside error.
But that will do what you ask.
DevinB Feb 06 '09 at 19:42 2009-02-06 19:42
source share