除去html空格成一行 .net
string tmp=///吧文件读出成string的
Regex regReplaceBlank = new Regex(">(\\s+)<", RegexOptions.IgnoreCase);
Regex regReplaceLine = new Regex("\\s\\n", RegexOptions.IgnoreCase);
tmp = regReplaceBlank.Replace(regReplaceLine.Replace(tmp, ""), "><");
Regex regReplaceLine = new Regex("\\s\\n", RegexOptions.IgnoreCase);
tmp = regReplaceBlank.Replace(regReplaceLine.Replace(tmp, ""), "><");