5、6、7位数字靓号的正则表达式
作者:互联网
ABABC ^([1-9])(?!\1)([0-9])\1\2(?!\1|\2)([0-9])$
ABCAB ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\1\2$
ABABA ^([1-9])(?!\1)([0-9])\1\2\1$
ABCCC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\3\3$
AAABC ^([1-9])\1\1(?!\1)([0-9])(?!\1|\2)([0-9])$
ABBBC ^([1-9])(?!\1)([0-9])\2\2(?!\1|\2)([0-9])$
ABBBA ^([1-9])(?!\1)([0-9])\2\2\1$
BBBAA ^([1-9])\1\1(?!\1)([0-9])\2$
ABACAA ^([1-9])(?!\1)([0-9])\1(?!\1|\2)([0-9])\1\1$
ABACBB ^([1-9])(?!\1)([0-9])\1(?!\1|\2)([0-9])\2\2$
ABBCCC ^([1-9])(?!\1)([0-9])\2(?!\1|\2)([0-9])\3\3$
ACBCCC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\2\2\2$
AAABCD ^([1-9])\1\1(?!\1)([0-9])(?!\1|\2)([0-9])(?!\1|\2|\3)([0-9])$
ABCACC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\1\3\3$
ABCABC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\1\2\3$
ABCBBB ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\2\2\2$
AAABBB ^([1-9])\1\1(?!\1)([0-9])\2\2$
ABAAAA ^([1-9])(?!\1)([0-9])\1\1\1\1$
AABBACC ^([1-9])\1(?!\1)([0-9])\2\1(?!\1|\2)([0-9])\3$
ABBBACC ^([1-9])(?!\1)([0-9])\2\2\1(?!\1|\2)([0-9])\3$
ABBCABB ^([1-9])(?!\1)([0-9])\2(?!\1|\2)([0-9])\1\2\2$
ABBBABB ^([1-9])(?!\1)([0-9])\2\2\1\2\2$
ABCAB ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\1\2$
ABABA ^([1-9])(?!\1)([0-9])\1\2\1$
ABCCC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\3\3$
AAABC ^([1-9])\1\1(?!\1)([0-9])(?!\1|\2)([0-9])$
ABBBC ^([1-9])(?!\1)([0-9])\2\2(?!\1|\2)([0-9])$
ABBBA ^([1-9])(?!\1)([0-9])\2\2\1$
BBBAA ^([1-9])\1\1(?!\1)([0-9])\2$
ABACAA ^([1-9])(?!\1)([0-9])\1(?!\1|\2)([0-9])\1\1$
ABACBB ^([1-9])(?!\1)([0-9])\1(?!\1|\2)([0-9])\2\2$
ABBCCC ^([1-9])(?!\1)([0-9])\2(?!\1|\2)([0-9])\3\3$
ACBCCC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\2\2\2$
AAABCD ^([1-9])\1\1(?!\1)([0-9])(?!\1|\2)([0-9])(?!\1|\2|\3)([0-9])$
ABCACC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\1\3\3$
ABCABC ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\1\2\3$
ABCBBB ^([1-9])(?!\1)([0-9])(?!\1|\2)([0-9])\2\2\2$
AAABBB ^([1-9])\1\1(?!\1)([0-9])\2\2$
ABAAAA ^([1-9])(?!\1)([0-9])\1\1\1\1$
AABBACC ^([1-9])\1(?!\1)([0-9])\2\1(?!\1|\2)([0-9])\3$
ABBBACC ^([1-9])(?!\1)([0-9])\2\2\1(?!\1|\2)([0-9])\3$
ABBCABB ^([1-9])(?!\1)([0-9])\2(?!\1|\2)([0-9])\1\2\2$
ABBBABB ^([1-9])(?!\1)([0-9])\2\2\1\2\2$
标签:ABCAB,数字,ABCABC,正则表达式,ABBCCC,ABBBACC,靓号,ABCCC,ABCBBB 来源: https://www.cnblogs.com/math-and-it/p/16317506.html