title: match numbers or numbers and comma
body: <p>I want to check if my string is numbers or numbers and comma, no other character is allowed.</p>
  
  <p>That's my try:</p>
  
  <pre><code>if(myStr.match(/\d+(,\d+)*/g)) {
          console.log("valid");
  } else {
          console.log("not valid"); 
  }
  </code></pre>
  
  <p>It doesn't work as I wants, for example:</p>
  
  <pre><code>myStr = "12,15,as";
  </code></pre>
  
  <p>is "valid", but it shouldnt.</p>
  
  <p>How can I fix it?</p>