i have this string
var str="\r\nFeatures\r\nWins\r\n\r\n";
i want split on "\r\n" but between two "\r\n\r\n" have value null or whitespace
i want get result 3 items = Features Wins nullorwhitespace
i write this code but get 2 items = Features Wins
var val = str.TrimStart('\r', '\n', '\t').TrimEnd('\r', '\n', '\t').Split("\r\n");
var result = str.Split(new[] { "\n" }, StringSplitOptions.None).Where(s => !s.Equals("\r")).ToArray();