def build_tag_regex(plugin_dict):
    """Given a plugin dict (probably from tagplugins) build an 'or' regex
       group. Something like: (?:latex|ref)
    """
    func_name_list = []
    for func_tuple in plugin_dict:
        for func_name in func_tuple:
            func_name_list.append(func_name)
    regex = '|'.join(func_name_list)
    return '(?:' + regex + ')'