正则

private static final String NEWPWD = "newPwd";
private static final String pattern0 = "^[0-9]\\d{5}$";
private static final String pattern1 = "^([\\d])\\1{2,}([\\d])\\2{2,}$";
private static final String pattern2 = "^(\\d\\d)\\1+$";
private static final String pattern3 = "^(\\d\\d\\d)\\1+$";
private static final String pattern4 = "^([\\d])\\1{1,}([\\d])\\2{1,}([\\d])\\3{1,}$";
private static final String pattern5 = "^(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}\\d$";
private static final String pattern6 = "^(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){5}\\d$";
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页