def get_links(html, regex, deck_list):
    """
    Parses html, finding all matches of regex for all anchor elements
    appends the hearthpwn.com urls it finds to the deck_list, and returns deck_list
    """
    for link in html.find_all('a'):
        href = str(link.get('href'))
        if regex.match(href):
            deck_list.append(href)
    return deck_list