close
判斷字串是否是英文的method
/// <summary> /// 判斷字串是否是大寫英文字母,是=>回傳true,否=>回傳false /// </summary> /// <param name="str"></param> /// <returns></returns> private Boolean IsEnglish(String str) { Regex eng = new Regex("^[A-Z]+$"); return eng.IsMatch(str); }
全站熱搜