I am working with resetting passwords. I need a way in java using regular expressions to reset the password so it cannot contain 4 consecutive characters from the previous password.
I don't think that regular expression is an apropriate tool for this task.
Actually, I can't see any other solution then a loop which will try to find a substring of 4 common characters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With