I\'ve been using the Split() method to split strings, but this only appears to work if you are splitting a string by a character. Is there a way to split a
Split()
The easiest way is to use String.Replace:
String.Replace
string myString = "THExxQUICKxxBROWNxxFOX"; mystring = mystring.Replace("xx", ", ");
Or more simply:
string myString = "THExxQUICKxxBROWNxxFOX".Replace("xx", ", ");