123\r\n456t\r\n789
How can i split the string above in to multiple strings based on the string text .split has only over load that takes char :(
string.Split has supported an overload taking an array of string delimiters since .NET 2.0. For example:
string data = "123text456text789";
string[] delimiters = { "text" };
string[] pieces = data.Split(delimiters, StringSplitOptions.None);
use string.split("text"), hope it will help.
stringseparators, I believe they were there in earlier versions.