title: Python regular expression match number in string
body: <p>I used regular expression in python2.7 to match the number in a string but I can't match a single number in my expression, here are my code</p>
  
  <pre><code>import re
  import cv2
  
  s = '858  1790 -156.25 2'
  re_matchData = re.compile(r'\-?\d{1,10}\.?\d{1,10}')
  data = re.findall(re_matchData, s)
  print data
  </code></pre>
  
  <p>and then print:</p>
  
  <pre><code>['858', '1790', '-156.25']
  </code></pre>
  
  <p>but when I change expression from</p>
  
  <pre><code>re_matchData = re.compile(r'\-?\d{1,10}\.?\d{1,10}')
  </code></pre>
  
  <p>to </p>
  
  <pre><code>re_matchData = re.compile(r'\-?\d{0,10}\.?\d{1,10}')
  </code></pre>
  
  <p>then print:</p>
  
  <pre><code>['858', '1790', '-156.25', '2']
  </code></pre>
  
  <p>is there any confuses between d{1, 10} and d{0,10} ?
  If I did wrong, how to correct it ?
  Thanks for checking my question !</p>