Regex.Replace(Text, @"\s+", string.Empty)
\s matches whitespace (short for [\f\n\r\t\v\u00A0\u2028\u2029]).
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)