import re


def get_table_headers(table):
    """
    Returns a list of the table headers values for table
    """
    pattern = re.compile(r'(?ims)\<thead\>(.*?)\</thead\>')
    head = pattern.findall(table)[0]

    pattern = re.compile(r'(?ims)\<th.*?\>([^<]+?)\<.*?/th\>')
    return pattern.findall(head)