title: Regex to check for 4 consecutive numbers
body: <p>Can I use </p>
  
  <pre><code>\d\d\d\d[^\d]
  </code></pre>
  
  <p>to check for four consecutive numbers?</p>
  
  <p>For example, </p>
  
  <p>411112 OK</p>
  
  <p>455553 OK</p>
  
  <p>1200003 OK</p>
  
  <p>f44443 OK</p>
  
  <p>g55553 OK</p>
  
  <p>3333 OK</p>
  
  <p>f4442 No</p>
  
  <p>45553 No</p>
  
  <p>f4444g4444 No</p>
  
  <p>f44444444 No</p>