/**
* 验证输入密码长度 (6-18位)
*
* @param 待验证的字符串
* @return 如果是符合格式的字符串,返回 <b>true </b>,否则为 <b>false </b>
*/
public static boolean IsPasswLength(String str) {
String regex = "^\\d{6,18}$"
;
return match(regex, str);
}
转载于:https://www.cnblogs.com/20gg-com/p/6037450.html
转载请注明原文地址: https://mac.8miu.com/read-408617.html