import re


def parse_ip(text):
    """Extract an IPv4 IP from a text string
    Uses an IP Address Regex: http://www.regular-expressions.info/examples.html

    """
    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