'Search if text is an IP address, and return it if so, else None'

@staticmethod
def searchIP(text):

    match = IPAddr.IP_4_6_CRE.match(text)
    if (not match):
        return None
    ipstr = match.group('IPv4')
    if (ipstr != ''):
        return ipstr
    return match.group('IPv6')
