title: Java repeated character regex with condition
body: <p>I have large database. I want to check my database capitalize errors. I use this pattern for repeated chars. Pattern works but i need to start and end condition with string.</p>
  
  <p><strong>Pattern:</strong></p>
  
  <pre><code>(\w)\1+
  </code></pre>
  
  <p><strong>Target String:</strong></p>
  
  <pre><code>Javaaa
  </code></pre>
  
  <p>result: <strong>aaa</strong></p>
  
  <p>I want to <strong>add condition to regex</strong>; Start with <strong>Ja</strong> and end with <strong>a*. Result **only must be repetead</strong> characters.</p>
  
  <blockquote>
    <p>(I dont want to control programmatically only regex do this if its possible</p>
    
    <p>(I'm do this with <code>String.replaceAll(regex, string)</code> not to
    <code>Pattern or Matcher</code> class)</p>
  </blockquote>