Every bad experience is a learning experience. I've had my fair share of issues involving matters of the heart as well, but I think I'm better for it. You will be too. :)
Every experience is a learning experience, for every experience adds to the collective sum of knowledge you have.
From the dead one I learned to care about every moment, for whence it is gone it shall never return.
From unrequited romance I learned that no matter how much you love someone, that you have to let them go. If they love you, they'll come back. If they don't, then 'twas not meant to be, and there is no sense in fretting over it.
From the mentally unstable one I learned that you cannot "fix" someone. A person is who they are, flaws and all, and you have to accept that, even if you don't understand it, so long as it doesn't harm you.
And from the lack of understanding of love, I learned two things. First, that love is happiness shared. Second, that you cannot share happiness with someone else unless you have some of your own. Love yourself first, care about yourself, know
who you are and
what you want and your limitations and your skills. Then, take these things and find someone, and if you're attracted to them, and they come back to you of their own will, and care about you, then share the love you have for yourself with the person you care about. Cherish them and be kind to them and never take a moment for granted.
Life's too short to be spent moping about failures. One day, I will find my own way. 'Til then, I can answer the curious questions of females about why we apparently have a mayo obsession.
Delightful.