def test(search,target):
    last_pos = 0
    next_pos = 0
    while True:
        last_pos = search.find(target,next_pos)
        if last_pos == -1:
            return last_pos


