Moving on and learning from your past mistakes. Not blaming yourself too much, lingering on the sadness and melancholy that is the art of getting your heart broken. YES, getting your heart broken is an art.
Know that not all people are the same and imagine if people who have been heart broken gave up on love? There wouldn't be any couple in the world AT ALL. It's all about forgiveness and the willingness to move on and learn.
Try to remember that the new people are not the same ones that hurt you. Also you may not be certain what to look for in a person, but you now know what not to look for. It is a process and it takes time, but when the right one does come along, it will all make sense and will feel right.