(self, target)
return "hostname"
Checks the target information provided to determine if it is a(n)
        IP Address in standard; CIDR or dash notation, or an MD5 hash,
        or a string hostname.
        Returns a string md5 if MD5 hash is identified. Returns the string
        ip if any IP Address format is found. Returns the string hostname
        if neither of those two are found.

        Argument(s):
        target -- string representing the target provided as the first
        argument to the program when Automater is run.

        Return value(s):
        string.

        Restriction(s):
        The Method has no restrictions.
Checks the target information provided to determine if it is a(n)
        IP Address in standard; CIDR or dash notation, or an MD5 hash,
        or a string hostname.
        Returns a string md5 if MD5 hash is identified. Returns the string
        ip if any IP Address format is found. Returns the string hostname
        if neither of those two are found.
Checks the target information provided to determine if it is a ( n ) IP Address in standard ; CIDR or dash notation or an MD5 hash or a string hostname . Returns a string md5 if MD5 hash is identified . Returns the string ip if any IP Address format is found . Returns the string hostname if neither of those two are found .
def identifyTargetType(self, target):
        """
        Checks the target information provided to determine if it is a(n)
        IP Address in standard; CIDR or dash notation, or an MD5 hash,
        or a string hostname.
        Returns a string md5 if MD5 hash is identified. Returns the string
        ip if any IP Address format is found. Returns the string hostname
        if neither of those two are found.

        Argument(s):
        target -- string representing the target provided as the first
        argument to the program when Automater is run.

        Return value(s):
        string.

        Restriction(s):
        The Method has no restrictions.
        """
        ipAddress = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')
        ipFind = re.findall(ipAddress, target)
        if ipFind is not None and len(ipFind) > 0:
            return "ip"

        md5 = re.compile('[a-fA-F0-9]{32}', re.IGNORECASE)
        md5Find = re.findall(md5,target)
        if md5Find is not None and len(md5Find) > 0:
            return "md5"

        return "hostname"
def identifyTargetType ( self , target ) : ipAddress = re . compile ( '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' ) ipFind = re . findall ( ipAddress , target ) if ipFind is not None and len ( ipFind ) > 0 : return "ip" md5 = re . compile ( '[a-fA-F0-9]{32}' , re . IGNORECASE ) md5Find = re . findall ( md5 , target ) if md5Find is not None and len ( md5Find ) > 0 : return "md5" return "hostname"