如代码:
static bool ContainChinese(string input)
{
string pattern = "[\u4e00-\u9fbb]";
return Regex.IsMatch(input, pattern);
}
2023-08-05 13:13:46
如代码:
static bool ContainChinese(string input)
{
string pattern = "[\u4e00-\u9fbb]";
return Regex.IsMatch(input, pattern);
}