title: Regular expression to accept negative number
body: <p>I have this regular expression below:</p>
  
  <pre><code>^([0-9]+,)*[0-9]+$
  </code></pre>
  
  <p>This will validate the input from a user to accept positive or negative numbers only that is comma separated or dash.</p>
  
  <pre><code>123,123,10
  10,10
  25
  -25,10
  </code></pre>
  
  <p>My regular expression above is only working for positive numbers and comma separator. How can I modify this to work with dash (10-25-30) and negative numbers?</p>