def _remove_by_index_list(text, index_list):
    """Remove all substrings inside a string, thanks to the given list of indexes """
    len_removed = 0
    for i in index_list:
        i_start = i[0] - len_removed
        i_end = i[1] - len_removed
        text = text[:i_start] + text[i_end:]
        len_removed += i[1] - i[0]
    return text
