import re


def checkIPAddr(ipAddr: str) -> bool:
    """
    Check IP Address

    Parameters
    ----------
        ipAddr: str
            IP Address from UI
    Returns
    ----------
        boolean
    """
    pattern = r'\d{1,3}'
    lst_ipAddr = ipAddr.split('.')
    if len(lst_ipAddr) != 4:
        print('number is false')
        return False
    for item in lst_ipAddr:
        if re.fullmatch(pattern, item) is None:
            print('pattern mismatch')
            return False
    return True