Skip to content

Instantly share code, notes, and snippets.

@patrickkettner
Created February 3, 2012 01:41
Show Gist options
  • Save patrickkettner/1727111 to your computer and use it in GitHub Desktop.
Save patrickkettner/1727111 to your computer and use it in GitHub Desktop.
requires two non consecutive special chars, one of more digits, and be between 8 and 20 chars
((?=.*\d)(?=(.*[!#$%&()*+,-./:;<=>?@[\]\^_`{|}~]){2,}).{8,20})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment