This forum is in archive mode. You will not be able to post new content.

Author Topic: (C#) Split With String Not Char  (Read 4496 times)

0 Members and 1 Guest are viewing this topic.

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
(C#) Split With String Not Char
« 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]);
« Last Edit: August 01, 2012, 11:18:25 PM by bubzuru »
Damm it feels good to be gangsta
http://bubzuru.comule.com

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.