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
Post a Comment