def isIpAddress()

in traffic-light-example-python/lightController.py [0:0]


def isIpAddress(value):
    match = re.match(r'^\d{1,3}\.\d{1,3}\.\d{1,3}', value)
    if match:
        return True
    return False