Don't lose weight rapidly, like you've been doing. It will almost always come back because you haven't changed your basic eating habits. What you need to do is quit "dieting" and figure out a healthy meal plan that you can live with that will let you lose the weight more slowly, -- maybe only a pound or two a month. You'll find that you will gradually get used to eating less, but also eating better. When you reach your goal weight, don't go back to your old habits, but increase your food intake enough that your weight stays steady. I lost 55 pounds just this way and have kept it off for 6 or 7 years now. I weigh myself every morning as soon as I get up so that I can catch any significant weight gain before it becomes a problem and do something about it. I enjoy eating now just as much as I ever did, and I also enjoy finally living at a healthy weight.
PS, my husband couldn't help but notice my weight loss success, and decided to on his own to use the same strategy. He dropped around 45 lbs and has also kept them off.