use Replace instead of Split
str = Regex.Replace(str, @"\s|,|\." , "");

解决方案 »

  1.   

    oops, sorry, should be String[] slist = Regex.Split(str, @"[\s,.]+");
      

  2.   

    我刚刚在网上查了perl的语法,用Regex.Split(str,@"\W+")更好,但它把单词之间的连字符(-)也去掉了,让我很烦恼。还有,句子中的html标记<b>、</b>、<br>、</br>如何一起去掉呢?
      

  3.   

    to remove these tags, use @"<[^>]+>" to match