def extract_int_from_str(string):
    """
    Tries to extract all digits from a string.

    Args:
        string: a string

    Returns:
        An integer consisting of all the digits in the string, in order,
        or False
    """

    try:
        return ''.join(filter(lambda x: x.isdigit(), string))
    except:
        return string