As below code, Regex.Replace() can trim the 2nd and 4th line of string
original.
string original = "\n0\t00000\t0\t0.123456\tEnglish\tabor"
+
"\n0\t00000\t0\t0.000000\tEnglish\tabor" +
"\n0\t00000\t0\t0.654321\tEnglish\tabor" +
"\n0\t00000\t0\t0.000000\tEnglish\tabor" +"\n";
Console.WriteLine(original);
string output = Regex.Replace(original,
"\n.*0\\.000000.*\n", "\n");
Console.WriteLine(output);
This works in .net 2.0 env, but not in 1.1 env. In 1.1, I have to
change it to
string output = Regex.Replace(original, ".*0\\.000000.*\n",
"");
It seems that Regex filter string line by line in 1.1.