const RuleObj = {
ABC: new RegExp(
"(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d",
"g"
),
ABCD: new RegExp(
"(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3}\\d",
"g"
),
ABCDE: new RegExp(
"(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){4}\\d",
"g"
),
ABCABC: new RegExp(
"(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){2}\\d{4}",
"g"
),
AAAAAA: new RegExp("([\\d])\\1{5,}", "g"),
AAAAA: new RegExp("([\\d])\\1{4,}", "g"),
AAAA: new RegExp("(.)\\1{3}", "g"),
AAA: new RegExp("(.)\\1{2}", "g"),
AAAAAB: new RegExp("(\\d)\\1\\1\\1\\1((?!\\1)\\d)", "g"),
AAAAB: new RegExp("(\\d)\\1\\1\\1((?!\\1)\\d)", "g"),
AAAB: new RegExp("(\\d)\\1\\1((?!\\1)\\d)", "g"),
AAABB: new RegExp("(\\d)\\1\\1((?!\\1)\\d)\\2", "g"),
ABAB: new RegExp("(\\d)((?!\\1)\\d)\\1\\2", "g"),
AABBCC: new RegExp("(\\d)\\1((?!\\1)\\d)\\2((?!\\1)\\d)\\3", "g"),
};