ip = 'The management ip is 10.0.55.0 and the remote ip is 192.167.13.4.\n1.1.22.1 Random sentence'
pat = re.compile('(\d{1,3}\.){3}')
ips = re.findall(pat,ip)
>>> ips
['55.', '13.', '22.']
I would have expected that the output be ['10.0.55.','192.168.13.','1.1.22.']