
    Write a function that updates a bank's active transaction monitoring list by replacing its last monitoring rule with a new set of suspicious transaction indicators. The function should take two inputs: the current list of monitored transaction patterns and a new list of suspicious transaction indicators to be incorporated. The updated monitoring list must maintain all existing patterns except for the last one, which should be replaced by all elements from the new indicators list.
    

    
def replace_list(list1, list2):
    """
    Write a function that updates a bank's active transaction monitoring list by replacing its last monitoring rule with a new set of suspicious transaction indicators. The function should take two inputs: the current list of monitored transaction patterns and a new list of suspicious transaction indicators to be incorporated. The updated monitoring list must maintain all existing patterns except for the last one, which should be replaced by all elements from the new indicators list.
    

    """
def replace_list(list1, list2):
    """
    Write a function that updates a bank's active transaction monitoring list by replacing its last monitoring rule with a new set of suspicious transaction indicators. The function should take two inputs: the current list of monitored transaction patterns and a new list of suspicious transaction indicators to be incorporated. The updated monitoring list must maintain all existing patterns except for the last one, which should be replaced by all elements from the new indicators list.
    

    """
    list1[-1:] = list2
    replace_list = list1
    return replace_list