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

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -