import re


def get_percent(line):
    """
       Args:
          line: A progress string containing percent complete

       Return:
          integer of current percent value if found, otherwise None
    """
    m = re.search(r'\d+', line)
    if m:
        try:
            return int(m.group())
        except ValueError:
            return None