'Remove excluded tags from a tag list
Run regex against list of tags, remove matching tags. Return filtered list.
Args:
tags (list): list of tags
Return:
tag_list(list): filtered list of tags'

def filter_excluded_genres(self, tags, regex):

    tag_list = []
    try:
        for tag in tags:
            tag = self.convert_html_entities(tag)
            if re.search(regex, tag):
                continue
            else:
                tag_list.append(tag)
    except:
        self.opts.log.error((' DCTB filter_excluded_genres():    malformed    --exclude-genre    regex    pattern:    %s' % regex))
        return tags
    return tag_list
