62,254
社区成员
发帖
与我相关
我的任务
分享
string s = "abcdefg撒大声的hijk";
string result = "";
Regex r = new Regex(@"[\u4e00-\u9fa5]", RegexOptions.IgnoreCase);
Match m;
for (m = r.Match(s); m.Success; m = m.NextMatch())
{
result += m.Groups[0].ToString();
}
Response.Write(result);