Created
April 19, 2011 07:32
-
-
Save anb/926967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test = "fadslfasd 81.123.233.14 fadslkfjads kterstl adfs 10.10.11.10f sad" | |
ip = re.findall( r'[0-9]+(?:\.[0-9]+){3}', test ) | |
In [29]: ip | |
Out[29]: ['81.123.233.14', '10.10.11.10'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment