def findExpression(lines, expr, startPos=0):
    """ Searches an array of strings for an expression. returning the line idx that contains it"""
    idx = -1
    if expr == "":
        return idx

    for i in range(startPos, len(lines)):
        if expr in lines[i]:
            idx = i
            break  # Line is found, bail from the loop.
    return idx