title: How to disallow a digit repeating n times with a regular expression
body: <p>Here is my @Pattern annotation.  I want to disallow digits that repeat 9 times.  What have I done wrong?</p>
  
  <pre><code>@Pattern(regexp="(?!.*\\d{9})")
  </code></pre>
  
  <p>These would be invalid strings:</p>
  
  <pre><code>111111111
  222222222
  </code></pre>
  
  <p>These would be valid:</p>
  
  <pre><code>111111112
  222222221
  123456789
  </code></pre>
  
  <p>Only strings with a length of 9 will be valid but this is not needed as part of the regular expression since that will be controlled by other annotations.</p>