title: Invalid escape sequence \d
body: <p>I'm trying to check if a password contain at least one lower case letter, one upper case letter, one digit and one special character.</p>
  
  <p>i'm trying this:</p>
  
  <pre><code>if(!password.matches("(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&amp;+=])")){
          username = "Error";
      }
  </code></pre>
  
  <p>but give me an error saying: invalid escape sequence.</p>
  
  <p>Someone can help me to solve the problem and can confirm that is a correct pattern?</p>
  
  <p>Thanks, whit \\d don't do error but it don't match with a string like Paul%88 why?</p>