<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Create a function that takes in an array of strings and a search term and returns an array of indices of strings that match the search term.
array = ["I love dogs","I hate cats","Dogs are the best"] 
search_term = "dogs"<|im_end|>
<|im_start|>assistant
def search_indices(array, search_term):
    # initialise an empty list 
    indices_list = [] 
    # loop over the array
    for index, s in enumerate(array): 
        # if the search term is in the string 
        if search_term in s.lower(): 
            # append the index to the list 
            indices_list.append(index)
    # return the list of indices 
    return indices_list<|im_end|>
