title: Matching numbers with regular expressions — only digits and commas
body: <p>I can't figure out how to construct a regex for the example values:</p>
  
  <pre><code>123,456,789
  -12,34
  1234
  -8
  </code></pre>
  
  <p>Could you help me?</p>