c#如何判断字符串是否含中文
生活随笔
收集整理的這篇文章主要介紹了
c#如何判断字符串是否含中文
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
如代碼:
static bool ContainChinese(string input){string pattern = "[\u4e00-\u9fbb]";return Regex.IsMatch(input, pattern);}?
轉載于:https://www.cnblogs.com/jietian331/p/7245165.html
總結
以上是生活随笔為你收集整理的c#如何判断字符串是否含中文的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2017年7月27日 老大传授的知识
- 下一篇: c# 日期格式化