Splitting a string using a string

I have seen several threads in different forums that deal with string splitting, and saw in particular that in a few of them was stated that you could only split with a char.

Fortunately, as detailed here: http://msdn.microsoft.com/en-us/library/tabh47cf%28v=VS.90%29.aspx

you can split a string using a string, as long as you declare it as an array!

// Split a string delimited by another string and return all elements.

string[] result = source.Split(stringSeparators, StringSplitOptions.None);

where

string[] stringSeparators = new string[] {"[stop]"};

hopefully this post will save the time of those poor fools like me that didn’t want to use regular expressions to do such a simple string operation.