<br><br>El jue, 2 de oct 2014 a las 11:33 AM, David Rock <david@graniteweb.com> escribió:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">
A regex may be possible, but you will have similar issues to using
split.  
</div></blockquote><br><div>In my humble experience, a regex is the way to go:</div><div><br></div><div>import re</div><div>ip = re.findall( r'[0-9]+(?:\.[0-9]+){3}', s )</div><div><br></div><div>you will get a list of IP addresses and can filter from there which ones start with "25."</div>