zoukankan      html  css  js  c++  java
  • 手机靓号筛选——正则表达式


    AAAA: (1d{2})d{4}([d])2{3}
    AAA: (1d{2})d{5}([d])2{2}
    ABCD: (1d{2})d{4}(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3}d
    DCBA: (1d{2})d{4}(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){3}d
    ABCABC: (1d{2})d{2}((?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}d){2}
    CBACBA: (1d{2})d{2}((?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){2}d){2}
    A**A**: (1d{2})d{2}(?<g>(d)(?!2)(d)(?!23)d)k<g>{1}
    A***A***: (1d{2})(?<g>(d)(?!2)(d)(?!23)dd)k<g>{1}
    ABABAB: (1d{2})d{2}(?<g>(d)(?!2)d)k<g>{2}
    AABB: (1d{2})d{4}(?<g1>(d)2)(?!k<g1>)(?![(4)(7)])(d)3


    ABC: (1d{2})d{5}(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}d
    CBA: (1d{2})d{5}(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){2}d
    ABAB: (1d{2})d{4}((d)(?!2)(d)(?<!3))2
    888A: (1d{2})d{4}888d
    444: (1d{2})d{5}444
    88: (1d{2})d{6}88
    AA44: (1d{2})d{4}([d])2{1}44
    AA77: (1d{2})d{4}([d])2{1}77
    AAA8: (1d{2})d{4}([d])2{2}8
    ABACAD: (1d{2})d{2}([d])(?:(02(?=1))|(12(?=2))|(22(?=3))|(32(?=4))|(42(?=5))|(52(?=6))|(62(?=7))|(72(?=8))|(82(?=9)))d2(?:((?<=12)2)|((?<=22)3)|((?<=32)4)|((?<=42)5)|((?<=52)6)|((?<=62)7)|((?<=72)8)|((?<=82)9))
    ADACAB: (1d{2})d{2}([d])(?:(92(?=8))|(82(?=7))|(72(?=6))|(62(?=5))|(52(?=4))|(42(?=3))|(32(?=2))|(22(?=1))|(12(?=0)))d2(?:((?<=92)8)|((?<=82)7)|((?<=72)6)|((?<=62)5)|((?<=52)4)|((?<=42)3)|((?<=32)2)|((?<=22)1))
    号段AAAA: (1d{2})([d])2{3}d{4}

    普通靓号
    AAAB: (1d{2})d{4}([d])2{2}(?!2)d
    ABBA: (1d{2})d{4}([d])(?!2)([d])32
    BACADA: (1d{2})d{3}(d)(?:((?<=02)1(2)2)|((?<=12)2(2)3)|((?<=22)3(2)4)|((?<=32)4(2)5)|((?<=42)5(2)6)|((?<=52)6(2)7)|((?<=62)7(2)8)|((?<=72)8(2)9))2
    DACABA: (1d{2})d{3}(d)(?:((?<=92)8(2)7)|((?<=82)7(2)6)|((?<=72)6(2)5)|((?<=62)5(2)4)|((?<=52)4(2)3)|((?<=42)3(2)1)|((?<=32)2(2)1)|((?<=22)1(2)0))2
    A4A4: (1d{2})d{4}([d])4(2)4
    A7A7: (1d{2})d{4}([d])7(2)7
    AA8: (1d{2})d{5}([d])(?!8)(2)8
    A*A*A*: (1d{2})d{2}([d])(?!2)([d])2(?!3)([d])2d(?!4)
    *A*A*A: (1d{2})d{2}([d])(?!2)([d])(?!3)([d])3(?!3)([d])3
    66: (1d{2})d{6}66
    99: (1d{2})d{6}99

    优质号码:
    8: (1d{2})d{7}8
    88A: (1d{2})d{5}88d
    AA: (1d{2})d{6}(d)2
    ABAC: (1d{2})d{4}([d])(?:(02(?=1))|(12(?=2))|(22(?=3))|(32(?=4))|(42(?=5))|(52(?=6))|(62(?=7))|(72(?=8))|(82(?=9)))d
    ACAB: (1d{2})d{4}([d])(?:(92(?=8))|(82(?=7))|(72(?=6))|(62(?=5))|(52(?=4))|(42(?=3))|(32(?=2))|(22(?=1))|(12(?=0)))d
    CABA: (1d{2})d{4}(?:(9(?<g>d)(?=8))|(8(?<g>d)(?=7))|(7(?<g>d)(?=6))|(6(?<g>d)(?=5))|(5(?<g>d)(?=4))|(4(?<g>d)(?=3))|(3(?<g>d)(?=2))|(2(?<g>d)(?=1))|(1(?<g>d)(?=0)))dk<g>


    AAAA: (1d{2})([d])2{3}d{4}
    AAA: (1d{2})(?:(?:d([d])2{2}d{4})|(?:([d])3{2}d{5}))
    AABB: (1d{2})([d])2(?!2)([d])3d{4}
    ABAB: (1d{2})(?<g>([d])(?!2)([d]))k<g>d{4}
    ABAC: (1d{2})([d])(?:(02(?=1))|(12(?=2))|(22(?=3))|(32(?=4))|(42(?=5))|(52(?=6))|(62(?=7))|(72(?=8))|(82(?=9)))d{4}
    ABCD: (1d{2})(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3}d{5}
    ABBA: (1d{2})(?<g>([d])(?!2)d)k<g>d{4}
    1688: (1d{2})1688d{4}
    1988: (1d{2})1988d{4}

    尾数为4: (1d{2})d{7}4
    尾数未7: (1d{2})d{7}7

  • 相关阅读:
    笔记本CPU
    [转]Linux管理员新手易犯的十种错误
    Linux 如何禁止用户登录
    Linux 工作人员之间的交互
    双核处理器
    Ant时间戳的使用
    [转]linux+php5.1.6+mysql5.0.2+apache2.0.55安装配置说明
    ADDM 报告结果中的相关术语
    Mysql 用户密码
    [转]Linux系统中用户帐户清洁与安全方法
  • 原文地址:https://www.cnblogs.com/dvwei/p/3790331.html
Copyright © 2011-2022 走看看