/**
*
只能输入数字,字母,汉字和下划线
*
@param
chars
*
@return
*/
public static boolean
isLegalChars(String chars){
String regex =
"[
\u4e00
-
\u9fa5\\
w]+"
;
boolean
result = chars.matches(regex);
return
result;
}