/// </summary> private bool IsChinese(string Value) {Regex Rg = new Regex("^[\u4e00-\u9fa5]$"); return rg.IsMatch(value); Private bool IsNumber(string Value) {Regex rg = new Regex("^[0-9]$"); private bool IsNumber(string value) {Regex rg = new Regex("^[0-9]$"); return rg.IsMatch(value); } private bool IsWord(string value) {Regex rg = new Regex("^[a-zA-z]$"); return rg.IsMatch(value); }Copy the code
Private bool IsChineseOrNumberOrWord(String Value) {Regex rg = new Regex("^[\u4e00-\u9fa5a-zA-Z0-9]$"); return rg.IsMatch(value); }Copy the code