I have cloned some password validation code (using RegExp) and adapted it to my own needs. However, none test for repeated characters. Can someone come up with a simple way to test a string for more then 2 characters that are the same? All I can come up with is a test in a loop for each letter, number and special character. There has to be a clever and easier way. TIA.