title: How to avoid empty strings in pythong's regular expression function re.findAll?
body: <p>I use python's re module to recognize integers in a sentence. It produces empty strings as well. Any idea on how to remove those empty strings?</p>
  <pre><code>In [15]: myre=&quot;[0-9]*&quot;
  
  In [16]: re.findall(myre,&quot;23&quot;)
  Out[16]: ['23', '']
  
  In [17]: re.findall(myre,&quot;23 is a good number.&quot;)
  Out[17]:
  ['23',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '',
   '']
  </code></pre>