import re


def format_builder(obf_group):
    """
    Supporting function for formatReplace() that will try to build format operator indexes and rebuild strings.

    Args:
        obf_group: '("{1}{0}{2}" -F"AMP",'EX', "LE")'

    Returns:
        content_data: 'EXAMPLE'
    """
    # Builds an index list from the placeholder digits.
    index_list = [int(x) for x in re.findall(r"\d+", obf_group.split("-")[0])]

    string_list = "-".join(obf_group.split("-")[1:])[1:-1]
    string_list = [x[0][1:-1] for x in re.findall(r"((\"|\').+?(?<!`)(\2))", string_list)]

    content_data = list()

    for entry in index_list:
        if entry < len(string_list):
            content_data.append(string_list[entry])

    content_data = "".join(content_data)

    return content_data