title: Regular Expression for number and dash
body: <p>Currently I write the regex like this: <code>/^([\d+]*-)+([\d]*-)+([\d])*$/</code></p>
  
  <p>I want the result follow this pattern <code>00-123-456-789</code> or <code>00123456789</code> (dash between number group or no dash at all)</p>
  
  <ul>
  <li>not <code>00-123--457-789</code> </li>
  <li>or <code>-00-123-456-789-</code> </li>
  <li>or <code>-00123456789-</code> </li>
  <li>or <code>00-123-456-789-</code></li>
  </ul>
  
  <p>How can I modify the regex to matches the pattern above?</p>