title: Regular Expression, with number spaces dashes limited to 8-13 numbers
body: <p>I am trying to do a regular expression to validate a number between 9 and 13 numbers, but the  sequence can have dashes and spaces and the ideal is to not have more than one space or dash consecutively.</p>
  
  <p>this rule allow me to control the validation between 9 and 13 </p>
  
  <pre><code>/^[\d]{9,13}$/ 
  </code></pre>
  
  <p>now to add dashes and spaces</p>
  
  <pre><code>/^[\d -]{9,13}$/
  </code></pre>
  
  <p>I think I need something like that, but I need to count the numbers </p>
  
  <pre><code>/^[ -](?:\d){9,13}$/
  </code></pre>
  
  <p>Any tips?</p>