EvilZone

Programming and Scripting => .NET Framework => Topic started by: bubzuru on August 01, 2012, 11:18:09 PM

Title: (C#) Split With String Not Char
Post by: bubzuru on August 01, 2012, 11:18:09 PM
iv been asked how to do this once or twice, seem silly that you cant just pass the string to split

Code: (c#) [Select]
string ex = "test(#)one(#)two";
string[] hold = ex.Split(new string[] { "(#)" }, StringSplitOptions.None);

MessageBox.Show(hold[1]);