Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php password validation preg_match

if(!preg_match('/^(?=.*d)(?=.*[A-Za-z])[0-9A-Za-z!@#$%]{8,12}$/', $password)) {
    echo 'the password does not meet the requirements!';
}
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #php #password #validation
ADD COMMENT
Topic
Name
4+5 =