I need a regex pattern that matches any number that it's non-repeated digits are more than 7 digits. for example it has to match:
1234567
122345678
But not to match:
1222345
non-repeating digits in this number for example 122345678
is 8
while the whole number has 9
. but the non-repeating digits in this number: 11111222345
is only 5
.
this pattern doesn't do it:
/[0-9]{7,}/
I want it to count the non-repeating digits, not to ignore any number that has repeating digits.