title: How to get integer values from a string in Python?
body: <p>Suppose I had a string</p>
  
  <pre><code>string1 = "498results should get" 
  </code></pre>
  
  <p>Now I need to get only integer values from the string like <code>498</code>.  Here I don't want to use <code>list slicing</code> because the integer values may increase like these examples:</p>
  
  <pre><code>string2 = "49867results should get" 
  string3 = "497543results should get" 
  </code></pre>
  
  <p>So I want to get only integer values out from the string exactly in the same order.  I mean like <code>498,49867,497543</code> from <code>string1,string2,string3</code> respectively.</p>
  
  <p>Can anyone let me know how to do this in a one or two lines?</p>