I have been handed a task of putting together a login screen. I found something workable online but I'm having a problem writing the regular expression to validate the password. The following policy should be enforced -- the password should be exactly 14 characters long and should include:
- At least 2 upper case letters,
- at least 2 lower case letters,
- at least 2 numbers, and
- at least 2 'special' characters
I have no idea how to write this. Can anybody help?