If you want to restrict user to enter minimum 8 character password which will contain upper and lower case letter and one special character you can use regular expression like
^((?=(?:.*[a-zA-Z]){7})(?=(?:.*[@#$%^?])).{8})$
More Related Contents:
- My login page won't return anything
- Unexpected $end but I don’t know why PHP [closed]
- How to create login system in php? [closed]
- php login don’t work
- Parse error: syntax error, unexpected ‘else’ (T_ELSE) in C:\xampp3\htdocs\wb_html\login.php on line 8 [duplicate]
- How do you use bcrypt for hashing passwords in PHP?
- Secure hash and salt for PHP passwords
- Two-way encryption: I need to store passwords that can be retrieved
- Using sessions & session variables in a PHP Login Script
- Generating a random password in php
- PHP Session timeout
- How to best store user information and user login and password
- I cannot get my login form to connect interact properly with mySQL database [closed]
- encrypt and decrypt md5
- Why is password_verify returning false?
- Undefined index with $_POST [duplicate]
- Facebook only returning name and id of user
- password_hash returns different value every time
- What is the best way to password protect folder/page using php without a db or username
- Many hash iterations: append salt every time?
- Is it ever ok to store password in plain text in a php variable or php constant?
- a better approach than storing mysql password in plain text in config file?
- PHP regular expression for strong password validation [duplicate]
- Delete first 3 characters and last 3 characters from String PHP
- Special Characters in FPDF with PHP
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Strange problem with the length of the field gotten from database [duplicate]
- Change WooCommerce default password security level
- Unique key generation
- How to generate random password with PHP?