import re


def get_ipv4_routes(route_table):
    """
    The route table has several types of routes in it,
    this will filter out all but the ipv4 routes.

    The filters out the default route

    Returns a list of lists (line by line route output)
    """
    only_ipv4_routes = []
    for item in route_table:
        if len(item) >= 6:
            if re.match(r'\d+\.\d+\.\d+\.\d+', item[1]):
                if 'default' not in item[0]:
                    only_ipv4_routes.append(item)
    return only_ipv4_routes