I was trying to create a regex as per the password requirements.The requirement is
- Minimum eight (8) characters
- At least one number (0-9)
- Any three of the following:
- Lowercase
- Uppercase
- Number
- Special character ( ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ )
I created this regex
/^[0-9a-zA-Z\s!"#$\%&'\(\)\*\+\,\-\.\/\:;<=>?@\[\\\]\^\_\`\{\|\}\~]+$/g
I don't have that much knowledge of regex so just need confirmation is it right regex or need changes.