title: Regex to validate 3 repeating characters
body: <p>I'm trying to validate password which should not allow 3 repeating characters regardless of their position in the string.</p>
  
  <p>For example :</p>
  
  <p>121121 - Not Accepted, since 1 appears more than 3 times.</p>
  
  <p>121212 - accepted, since 1 and 2 appears only 3 times</p>
  
  <p>I tried this </p>
  
  <pre><code>([0-9])\1{2,}
  </code></pre>
  
  <p>But its validating only consecutive repeated digits.</p>