def ranges_to_indices(range_string):
    """Converts a string of ranges to a list of indices"""
    indices = []
    for span in range_string.split('/'):
        if ':' in span:
            start_idx, stop_idx = [int(idx) for idx in span.split(':')]
            stop_idx += 1  # add 1 since end index is excluded in range()
            indices.extend(list(range(start_idx, stop_idx)))
        else:
            indices.append(int(span))
    return indices