用正则表达式判断字符是不是是汉字

用正则表达式判断字符是否是汉字/** * 用正则表达式判断字符是否是汉字 * */ public static boolean isChi

用正则表达式判断字符是否是汉字

/** * 用正则表达式判断字符是否是汉字 * */ public static boolean isChinese(char c)  {  String regEx = "[\u4e00-\u9fa5]";  Pattern p = Pattern.compile(regEx);  Matcher m = p.matcher(c + "");  if (m.find())   return true;  return false; }
?