title: Regex in java for password validation
body: <p>Im using a regex for password validation :
  this regex is not created by me.. </p>
  
  <pre><code> public final Pattern PASSWORD = Pattern.compile("[(?=.*[a-zA-Z])]"
                  + "[(?=.*d)]" + "[(?=.*[^a-zA-Z0-9s])]" + "[.{6s,}]");
  </code></pre>
  
  <p>i m trying to create a regex for
   Password which is 6 letters long, one number and one upper case letter</p>
  
  <p>i dont know how to read regex...
  suggest some tutorials for learning regex and 
  does pattern PASSWORD satisfies my condition..
  if not then what changes do i need to make in my regex</p>