title: Read numbers in a string with any number of digits in python
body: <p>I am having trouble in parsing my string. Here are my codes:</p>
  
  <pre><code>name='report 11 hits'
  print(name[7:9])
  print(name[11:])
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>11
  hits
  </code></pre>
  
  <p>But, if I need to type the string as </p>
  
  <pre><code>name='report 112 hits'
  print(name[7:9])
  print(name[10:])
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>11
   hits
  </code></pre>
  
  <p>That means, whenever I am typing a number more than three digits, the program is not reading it well. I was wondering if someone could write me how to modify my code in such a way that no matter what digit I write, the program will read it correctly. Thanks.</p>