def grep(regex_name, regex, data):
    """Run regex

    :param regex_name: Name of regex
    :type regex_name: `str`
    :param regex: Regex
    :type regex:
    :param data: Data
    :type data: `str`
    :return: Output from grep
    :rtype: `dict`
    """
    results = regex.findall(data)
    output = {}
    if results:
        output.update({regex_name: results})
    return output