110,535
社区成员
发帖
与我相关
我的任务
分享
string str = "你的string";
bool flag = Regex.IsMatch(str, @"^(?=.*?[\u4e00-\u9fa5])(?=.*?[a-zA-Z])[\u4e00-\u9fa5a-zA-Z]+$");
string s = "你好我是three流垃圾菜鸟";
bool result = Regex.IsMatch(s, @"^[A-Za-z\u4e00-\u9fa5]+$") && Regex.IsMatch(s, @"[\u4e00-\u9fa5]+") && Regex.IsMatch(s, @"[A-Za-z]+");