title: Validate that password doesn't contain 3+ consecutive characters from name
body: <p>I need to do this following password validation in Java</p>
  
  <ul>
  <li>Must be at least 8 characters in length</li>
  <li>Must contain at least 1 number</li>
  <li>Must contain at least 1 upper case letter</li>
  <li>Must contain at least 1 lower case letter</li>
  <li>Cannot contain 3 or more consecutive characters from your full name or your username (e.g. If your name is <code>Will</code> you couldn't have the password <code>Stiller458</code>)</li>
  </ul>
  
  <p>I have the first 4 points, how do I do the last one?</p>
  
  <p>Currently I have:</p>
  
  <pre><code>String pattern = "^(?=.*[^a-zA-Z])(?=.*[a-z])(?=.*[A-Z])\\S{8,}$";
  boolean passwordValidation = originalPassword.matches(pattern);
  </code></pre>