Strong Password RegEx


/ Published in: Regular Expression
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. (?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$

URL: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=297

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.