Skip to content

Instantly share code, notes, and snippets.

@suminb
Created September 6, 2012 23:00
Show Gist options
  • Save suminb/3661077 to your computer and use it in GitHub Desktop.
Save suminb/3661077 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import re
import sys
content = sys.stdin.read()
for p in re.findall(r"(\d+.\d+.\d+.\d+)\s+(\d+)", content):
print "http://%s:%s" % p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment