title: Regular expression that match string format "1,22,3,44"
body: <p>I tried:</p>
  <pre><code>preg_match(&quot;/((\d)+,?)+/&quot;,$string)
  </code></pre>
  <p>it returns correct result for:</p>
  <blockquote>
  <p>1,2,3,4,5</p>
  </blockquote>
  <p>but it also matches with:</p>
  <blockquote>
  <p>1,2a</p>
  <p>1aaaa</p>
  <p>1,2,3,</p>
  </blockquote>
  <p>How can I fix this?</p>