Guest User

Untitled

a guest
Oct 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. PASSWORD_VALIDATOR = /( # Start of group
  2. (?: # Start of nonmatching group, 4 possible solutions
  3. (?=.*[a-z]) # Must contain one lowercase character
  4. (?=.*[A-Z]) # Must contain one uppercase character
  5. (?=.*\W) # Must contain one non-word character or symbol
  6. | # or...
  7. (?=.*\d) # Must contain one digit from 0-9
  8. (?=.*[A-Z]) # Must contain one uppercase character
  9. (?=.*\W) # Must contain one non-word character or symbol
  10. | # or...
  11. (?=.*\d) # Must contain one digit from 0-9
  12. (?=.*[a-z]) # Must contain one lowercase character
  13. (?=.*\W) # Must contain one non-word character or symbol
  14. | # or...
  15. (?=.*\d) # Must contain one digit from 0-9
  16. (?=.*[a-z]) # Must contain one lowercase character
  17. (?=.*[A-Z]) # Must contain one uppercase character
  18. ) # End of nonmatching group with possible solutions
  19. .* # Match anything with previous condition checking
  20. )/x # End of group
Add Comment
Please, Sign In to add comment