将字符串转换为C#中的单词列表的最有效方法是什么?C# - 关键字的字符串
例如:
Hello... world 1, this is amazing3,really , amazing! *bla*
应该变成串名单如下:
["Hello", "world", "1", "this", "is", "amazing3", "really", "amazing", "bla"]
注意,它应该支持英语以外的其他语言。
我需要这个,因为我想收集特定文本中的关键字列表。
谢谢。
您期待标记一个字符串。看看James的回答。 – Gage 2010-09-03 19:04:44
你需要处理多少文字?几千字或数百万? – Larsenal 2010-09-03 19:16:35
其实最大值可能会像100个字。 – 2010-09-03 20:44:32