Skip to content

Instantly share code, notes, and snippets.

@muhrusdi
Created June 25, 2022 15:34
Show Gist options
  • Save muhrusdi/471886b8941fefb15129901b37984274 to your computer and use it in GitHub Desktop.
Save muhrusdi/471886b8941fefb15129901b37984274 to your computer and use it in GitHub Desktop.
You may use this regex with multiple
symbol is required: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/
symbol is not requreid: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment