|
@@ -8,10 +8,6 @@ import java.util.regex.Pattern;
|
|
|
*/
|
|
|
public class ValidateUtil {
|
|
|
|
|
|
- /**
|
|
|
- * 6~16位字符,至少包含数字、大写字母、小写字母、符号中的两种
|
|
|
- * @return
|
|
|
- */
|
|
|
public static boolean checkPwd(String value) {
|
|
|
return value.matches("(?!^[0-9]+$)(?!^[A-Z]+$)(?!^[a-z]+$)(?!^[^A-z0-9]+$)^.{6,16}");
|
|
|
}
|