匹配6位顺增
regex.Pattern =
"(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}\d"
匹配6位顺降
regex.Pattern =
"(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){5}\d"
匹配6位顺增或顺降
regex.Pattern =
"(?:(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}|(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){5})\d"
匹配4-9位连续的数字
(?:(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3,}|(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){3,})\d
匹配3位以上的重复数字
([\d])\1{2,}
匹配日期类型的数字
(19|20)[\d]{2}(1[0-2]|0?[1-9])(31|2[0-9]|1[0-9]|0?[0-9])
手机号码类
(13[0-9]|15[0-9]|18[0-9])([\d]{2,4}){2}
匹配33111类型的
([\d])\1{1,}([\d])\2{2,}
匹配5331533类型的
(([\d]){1,}([\d]){1,})\1{1,}
匹配22334,123355类型的
([\d])\1{1,}([\d])\2{1,}