import re


def regex_prettifier(scraped_data, regex):
    """Prettify the scraped data using a regular expression

    Positional Arguments:
        scraped_data (list): data scraped from a website
        regex (str): a regular expression
    Return:
        list: the regex modified data
    """
    data_list = []
    for data in scraped_data:
        data_list.append(re.sub(regex, '', data))
    return data_list