Skip to content

Instantly share code, notes, and snippets.

@alexcmgit
Created April 15, 2021 18:45
Show Gist options
  • Save alexcmgit/0fca8b488be66366ff604e8e4888529c to your computer and use it in GitHub Desktop.
Save alexcmgit/0fca8b488be66366ff604e8e4888529c to your computer and use it in GitHub Desktop.
At leat one uppercase char, one lowercase, and one number with min length = 8
const regex = new RegExp('^(?=.*?[A-Z])(?=.*?[])(?=.*?[0-9]).{8,}$');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment