24_pylint/sockets.py
def is_private(self):
        """
        Uses regex to validate if the IP is private
        """
        # return self.is_valid() and (self.ip[0:3]=='10.' or
        # self.ip[0:7] =='192.168' or self.ip[0:4]=='172.')
        regex = '^(10(\\.(25[0-5]|2[0-4][0-9]|1[0-9]{1,2}|[0-9]{1,2}))\
            {3}|((172\\.(1[6-9]|2[0-9]|3[01]))|192\\.168)(\\.(25[0-5]|2[0-4]\
            [0-9]|1[0-9]{1,2}|[0-9]{1,2})){2})$'
        return self.is_valid() and re.search(regex, self.ip_)

        Uses regex to validate if the IP is private
        
Uses regex to validate if the IP is private
Uses regex to validate if the IP is private
def is_private(self):
        regex = '^(10(\\.(25[0-5]|2[0-4][0-9]|1[0-9]{1,2}|[0-9]{1,2}))\
            {3}|((172\\.(1[6-9]|2[0-9]|3[01]))|192\\.168)(\\.(25[0-5]|2[0-4]\
            [0-9]|1[0-9]{1,2}|[0-9]{1,2})){2})$'
        return self.is_valid() and re.search(regex, self.ip_)
def is_private ( self ) : regex = '^(10(\\.(25[0-5]|2[0-4][0-9]|1[0-9]{1,2}|[0-9]{1,2}))\
            {3}|((172\\.(1[6-9]|2[0-9]|3[01]))|192\\.168)(\\.(25[0-5]|2[0-4]\
            [0-9]|1[0-9]{1,2}|[0-9]{1,2})){2})$' return self . is_valid ( ) and re . search ( regex , self . ip_ )
Uses regex to validate if the IP is private
Uses regex to validate if the IP is private
"""
        Uses regex to validate if the IP is private
        """ # return self.is_valid() and (self.ip[0:3]=='10.' or # self.ip[0:7] =='192.168' or self.ip[0:4]=='172.')
self