I have to check user input to make sure name, last name (etc...) are entered correctly and are valid. I have to build a regexp that check if a user enters repeated letters in the first name , last name etc...
Example:
- AAAron = bad because of the 3 A's
- AAron = good
- Hannah = Good
- Hannnah = bad because of the 3 N's
Is there a PHP regular expression to catch these cases? (I have a basic regexp knowledge but this is too much for me)
EDIT: This should Allow numbers as well: David 3 or III
Thanks