Last active
May 26, 2016 15:15
-
-
Save Lcfvs/b1ee7c7c26d949e3ff7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| matches a string which contains : | |
| - min 8 chars | |
| - a lowercase letter | |
| - a capital letter | |
| - a number | |
| - a special char | |
| - no chars repeated more than twice | |
| */ | |
| /(?=.{8,})(?=.*[A-Z].*)(?=.*[a-z].*)(?=.*\d.*)(?=.*[^a-z\dA-Z].*)(?=^((.)(?!\2{2}))+$)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment