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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -