def find_indices(text, expr):
    """Identify indices where search expression (expr) 
    occurs in base expression (text)"""
    places = []
    i = text.find(expr)
    while i>=0:
        places.append(i)
        i = text.find(expr, i + 1)
    return places