c# - split a string in to multiple strings -


123\r\n456t\r\n789 

how can split string above in multiple strings based on string text .split has on load takes char :(

string.split has supported overload taking array of string delimiters since .net 2.0. example:

string data = "123text456text789"; string[] delimiters = { "text" }; string[] pieces = data.split(delimiters, stringsplitoptions.none); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -