Source

OpenTools / python / 20120608 / ipTrim.py

Full commit
import re 
PATERN = r"A \d+\.\d+\.\d+\.\d+"
r = open("foo.txt","r")


for line in r:
    m = re.findall(PATERN,line)
    if m != None:
        for s in m:
            print s[2:]