/ Published in: Regular Expression
Credits to Julie. Here is a regex if you want this criteria:
* Passwords will contain at least (1) upper case letter
* Passwords will contain at least (1) lower case letter
* Passwords will contain at least (1) number or special character
* Passwords will contain at least (8) characters in length
* Password maximum length is not limited
* Passwords will contain at least (1) upper case letter
* Passwords will contain at least (1) lower case letter
* Passwords will contain at least (1) number or special character
* Passwords will contain at least (8) characters in length
* Password maximum length is not limited
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$
URL: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=297