title: How should I write a python regex for one/two digits numbers sequences?
body: <p>I'm trying to create a python regex for <em>"one or two digits numbers sequences separated by optional multiple spaces or an optional single comma."</em></p>
  
  <p>For example:</p>
  
  <pre><code>"   1"  Should tests good
  "    1  2     3 3  4 5 7 17" Should test good
  " 1, 2,3,11,74" Should test good
  "1,11,14, 15" Should test good
  
  "111, 101" Should not test good
  "1 2 3  a" Should not test good
  "1, 25, 5.0 " Should not test good
  "1,, 7, 80" Should not test good
  "1,11,14," Should not test good
  </code></pre>
  
  <p>Comma signs should only appear between numbers (or white spaces). That's why last example shouldn't test good.</p>
  
  <p>I tried with <a href="https://regex101.com/r/sJ9gM7/1" rel="noreferrer">this</a>:</p>
  
  <pre><code>^\s*\d{1,2}(\s*\,?\d{1,2}\s*\,?)*\s*$
  </code></pre>
  
  <p>But got not good results, for example "11111" would test good. How should I write my regex?</p>