title: Regex to block a phone number that contains same digit more than 4 times successively?
body: <p>i would like to add a regex to check if a phone number contains the same digits more than n times.
  this is what i tried :</p>
  
  <pre><code>  ^0[1-9]([-. ]?[0-9]{2}){4}$
  </code></pre>
  
  <p>how can i make it ?
  thanks.</p>