title: Regex matching hyphen and comma
body: <p>I am trying to match numbers using regex:</p>
  
  <ol>
  <li>Can contain hyphen in between</li>
  <li>Can contain both hyphen and comma</li>
  </ol>
  
  <p>tried:</p>
  
  <pre><code>[0-9-]+    
  [0-9]+[-]?:[-N]?[0-9]
  </code></pre>
  
  <p>Sample valid input:</p>
  
  <pre><code>60-55-1
  79-0,2,4,6,8,10,12,14,16,18,20,22,24,26
  </code></pre>