×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Michael Hurdle
Added: Jan 23, 2018 8:54 PM
Modified: Jan 25, 2018 8:29 PM
Views: 2727
Tags: no tags
  1. function verifyPassword(pw)
  2. {
  3.         var decimal=  /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,15}$/;  
  4.         if(pw.match(decimal))  
  5.         {    
  6.                 return true;  
  7.         }  
  8.         else  
  9.         {  
  10.                 return false;  
  11.         }  
  12. }