Posted By

axelitus on 06/30/09


Tagged

regex password strong


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

wizard04
Tyster


Strong Password RegEx


 / Published in: Regular Expression
 

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

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

  1. (?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$

Report this snippet  

You need to login to post a comment.