密码验证

mac2022-07-05  12

/** * 验证输入密码条件(字符与数据同时出现) * * @param 待验证的字符串 * @return 如果是符合格式的字符串,返回 <b>true </b>,否则为 <b>false </b> */ public static boolean IsPassword(String str) { String regex = "[A-Za-z]+[0-9]"; return match(regex, str); }

 

转载于:https://www.cnblogs.com/20gg-com/p/6037447.html

最新回复(0)