"\n \n Expected:\n \n \n Q4\n \n \n 2011\n \n "
From that string, I need to get the following:
"Expected Q4 2011"
I’ve tried the following and no dice:
myString.Trim().Replace("\n", "");
I get the following (the massive whitespace is intentional and not a site formatter issue. That is in fact what is returned.)
"Expected: Q4 2011"
Replace all white space blocks with a single space: