var reg = new RegExp("(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}\\d", "g");
if (phone.match(reg) != null) {
code +=',ABCDEF';
}
var reg = new RegExp("(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d", "g");
if (phone.match(reg) != null) {
code += ',ABC';
}
var reg = new RegExp("^(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d[\\d][\\d](?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 3) == result.substring(5,8)) {
code += ',ABC**ABC';
}
}
var reg = new RegExp("[\\d](?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d[\\d](?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d$", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(1, 4) == result.substring(5, 8)) {
code += ',*ABC*ABC';
}
}
var reg = new RegExp("(\\d)((?!\\1)\\d)\\2[\\d]", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 1) == result.substring(3, 4)) {
code += ',ABBA';
}
}
var reg = new RegExp("(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d{4}", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 3) == result.substring(3, 6)) {
code += ',ABCABC';
}
}
var reg = new RegExp("^(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d{4}", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 3) == result.substring(3, 6)) {
code += ',ABCABC*';
}
}
var reg = new RegExp("(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d{3}", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 2) == result.substring(3, 5)) {
code += ',ABCAB';
}
}
var reg = new RegExp("(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3}\\d", "g");
if (phone.match(reg) != null) {
code += ',ABCD';
}
var reg = new RegExp("(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3}\\d{5}", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 4) == result.substring(4, 8)) {
code += ',ABCDABCD';
}
}
var reg = new RegExp("(\\d)((?!\\1)\\d)\\1\\2\\1\\2", "g");
if (phone.match(reg) != null) {
code += ',ABABAB';
}
var reg = new RegExp("^(\\d)((?!\\1)\\d)\\1\\2\\1\\2", "g");
if (phone.match(reg) != null) {
code += ',ABABAB*';
}
var reg = new RegExp("(\\d)((?!\\1)\\d)\\1\\2", "g");
if (phone.match(reg) != null) {
code += ',ABAB';
}
var reg = new RegExp("^(\\d)((?!\\1)\\d)[\\d][\\d](\\d)((?!\\1)\\d)[\\d][\\d]", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(0, 2) == result.substring(4, 6)) {
code += ',AB**AB**';
}
}
var reg = new RegExp("[\\d][\\d](\\d)((?!\\1)\\d)[\\d][\\d](\\d)((?!\\1)\\d)$", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(2, 4) == result.substring(6, 8)) {
code += ',**AB**AB';
}
}
var reg = new RegExp('([\\d])\\1{4,}', "g");
if (phone.match(reg) != null) {
code +=',AAAAA';
}
var reg = new RegExp('(.)\\1{3}', "g");
if (phone.match(reg) != null) {
code +=',AAAA';
}
var reg = new RegExp('(\\d)\\1\\1((?!\\1)\\d)', "g");
if (phone.match(reg) != null) {
code += ',AAAB';
}
var reg = new RegExp('(.)\\1{2}', "g");
if (phone.match(reg) != null) {
code +=',AAA';
}
var reg = new RegExp('(.)\\1{1}', "g");
if (phone.match(reg) != null) {
code +=',AA';
}
//AABBB
var reg = new RegExp("(\\d)\1((?!\\1)\\d)\\2\\2", "g");
if (phone.match(reg) != null) {
code +=',AABBB';
}
//AABB
var reg = new RegExp("(\\d)\\1((?!\\1)\\d)\\2", "g");
if (phone.match(reg) != null) {
code +=',AABB';
}
//AABCC
var reg = new RegExp("(\\d)\\1((?!\\1)\\d)((?!\\1)\\d)\\3", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(2, 3) != result.substring(0, 1) && result.substring(2, 3) != result.substring(3, 4)) {
code += ',AABCC';
}
}
var reg = new RegExp("(\\d)\\1((?!\\1)\\d)\\2((?!\\1)\\d)\\3", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(2, 4) != result.substring(0, 2) && result.substring(2, 4) != result.substring(4, 6)) {
code += ',AABBCC';
}
}
var reg = new RegExp("^(\\d)\\1((?!\\1)\\d)\\2((?!\\1)\\d)\\3", "g");
if (phone.match(reg) != null) {
var result = phone.match(reg).toString();
if (result.substring(2, 4) != result.substring(0, 2) && result.substring(2, 4) != result.substring(4, 6)) {
code += ',AABBCC*';
}
}