El jue, 2 de oct 2014 a las 11:33 AM, David Rock <[email protected]>
escribió:
A regex may be possible, but you will have similar issues to using
split.
In my humble experience, a regex is the way to go:
import re
ip = re.findall( r'[0-9]+(?:\.[0-9]+){3}', s )
you will get a list of IP addresses and can filter from there which
ones start with "25."
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor