正则表达式汉字提取汉字

09-2109-2109-2109-2109-2109-2109-2109-2109-2109-21最新范文01-0101-0101-0101-0101-0101-0101-0101-0101-0101-0101-0101-0101-0101-0101-01正则表达式如何匹配网页里面的汉字? - 知乎134被浏览11684分享邀请回答//span[@class="pro-title"]/text()
368 条评论分享收藏感谢收起31 条评论分享收藏感谢收起查看更多回答public&static&string&GetChineseWord(string&oriText){&&&&string&x&=&@"[\u4E00-\u9FFF]+";&&&&MatchCollection&Matches&=&Regex.Matches(oriText,&x,&RegexOptions.IgnoreCase);&&&&StringBuilder&sb&=&new&StringBuilder();&&&&foreach&(Match&NextMatch&in&Matches)&&&&{&&&&&&&&sb.Append(NextMatch.Value);&&&&}&&&&return&sb.ToString();}&}

我要回帖

更多关于 非汉字正则表达式 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信