是否包含中文

public static bool HasChinese(string str)
{
return Regex.IsMatch(str, @"[\u4e00-\u9fa5]");
}

posted @ 2018-07-06 15:35  GU天乐乐乐!  阅读(250)  评论(2编辑  收藏  举报