Answers for "password validation regex regexr"

13

RegExp validation for password explained

r'^
  (?=.*[A-Z])       // should contain at least one upper case
  (?=.*[a-z])       // should contain at least one lower case
  (?=.*?[0-9])      // should contain at least one digit
  (?=.*?[!@#\$&*~]) // should contain at least one Special character
  .{8,}             // Must be at least 8 characters in length  
$
Posted by: Guest on April-26-2021
0

Password RegExp

"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$"
Posted by: Guest on March-16-2021

Code answers related to "password validation regex regexr"

Browse Popular Code Answers by Language