0

I'm trying to use the string separator method to remove paragraph symbols from a text file.

I've done several google searches but haven't gotten this to work. I've tried "\xB6", "\x U+2029", and several derivatives but to no success.

Here is the line I've been using:

string[] separators = { ",", ".", "!", "?", ";", ":", " ", "-", "#", "  ", "   ", "\r", "\t", "\f", "\xB6" };

I would really appreciate your help. If you'd be kind enough to include a short sample with your answer this would help me tremendously; because, as a beginner I tend to trip up frequently with syntax.

P.S. If you have any good referential links to share regarding C# and text parsing I promise you a large land grant after I've taken over the world by text parsing.

4

1 回答 1

0

我会使用十六进制查看器来查看这些段落分隔符是什么字符代码。然后你就会知道要过滤什么。

于 2013-07-04T22:08:16.497 回答