Python parse int from string
<pre><code>test1 = 'name1'
test2 = 'name2'
..
test3 = 'name45'
test4 = 'name1231231'
</code></pre>

<p>Let's say I have bunch of strings which start with 'name' and are followed by a number of any length.</p>

<p>How can I parse out the number in the string?  </p>

<p>Is <code>regex</code> the only way or is there a built-in module that can accomplish this task?</p>