def parse_ip(text):
    ip_matches = re.findall(r'\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b', text)
    ip = ip_matches[0] if ip_matches else None
    return ip
Extract an IPv4 IP from a text string
dataset/ETHPy150Open tobami/littlechef/plugins/save_ip.py/parse_ip