I have a huge string that looks like this:
"Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
"
Note that in between each text block is a new line. Also note that the very final text block has TWO new lines after it. So when I do a
string[] strArray = Regex.Split(content, "\r\n");
This works well, since it looks for a pattern of carriage return followed by new line. HOWEVER, for the very final entry in the array, it creates only a "" (empty string) because it does a split on the very final extra new-line.
So i want a regular expression instead of "\r\n" that will split on \r and exactly ONE \n.
any ideas?