Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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  
$
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #RegExp #validation #password #explained
ADD COMMENT
Topic
Name
4+8 =