import re


def findall_top(regex, text):
    """Like ``re.findall``, but returns only top level group in list.

    Args:
        regex (str): regex patern
        text (str): text to search for patern

    Returns:
        list: list of all matches
    """
    matches = re.finditer(regex, text)
    lst = []
    for match in matches:
        lst.append(match.group(0))
    return lst