import re


def meetDigitLength(exp, totalDigits):
    """
    Check expression to see if it meets requirement for total digits
    :param exp: math expression
    :param lenRequired:
    :return: True if requirement is met; False otherwise
    """
    total_digits_list = re.findall('\d+', exp)
    return all([len(i)==totalDigits for i in total_digits_list])