C#输入的字符串只包含汉字

        public  bool IsAllChineseCh(string input)
        {
            Regex regex = new Regex("^[\u4e00-\u9fa5]+$");
            return regex.IsMatch(input);
        }

posted @ 2016-05-08 10:31  文洁丫头  阅读(600)  评论(0编辑  收藏  举报