I'm trying to make a regular expression that detects if a string has at least 5 characters and at least one of them is repeated, I'm trying something like this:
"([\d]?[\d]){5,}"
But I think I'm misusing this expression:
(?[\d])
The accepted strings would be:
123451
12321
111111
The rejected ones would be:
1232
123456
123456789