This is a pretty simple problem. If I have a string and need to .Split by something that is multiple characters what is the "correct" or easiest way to do that. I can think of how to do it w/ regex's but is there are simplier way. I've been doing it like this and I feel like this is a real hack:
text = text .Replace("\r\n\r\n", "~");
text = text .Replace("\n\n", "~");
string[] splitText = text.Split('~');
It shouldn't really matter what the original string contains but it will be something like:
sometext\r\nsomemoretext\r\n\r\nsometext2\r\n\r\nfinalbitoftext
The split should return { somtext\r\nsomemoretext, sometext2, finalbitoftext
NOTE: The big blocks of text can contain \r\n, just never two together.