I have a requirement to validate passwords using the usual criteria, but one interesting one. I must make sure the password does not contain characters repeating more than once in a succession. The password can only be 20 characters long. The requirement means the following:
Legal passwords may contain: abcabc, dd, !&!&, rere
Illegal passwords: abcabcabc, ddd, !&!&!&, rerere
I hope this makes sense. I am working in coldfusion 8. I am trying to use a regular expression, but I think I need to do some sort of recurssion.
Any ideas? Thanks in advance. If you could point me in the right direction, that would be a big help.