Accept the fact that the relationship is over. Do not give yourself unrealistic fantasies that you might get back together one day. Respect the fact that the relationship had its time, but has no ran out ways to work. This was a chapter in your life that has now closed and you are now ready to grow and enter another chapter of your life.
Learn from it. Everything is a learning experience, so use it your advantage! look over your relationship and list what went good about it and what went wrong.
Never generalize. going through a break up does cause you emotional withdrawal and pain, which may cause you to generalize everyone you meet or choose to date. Keep in mind that everyone is an individual with their own unique qualities and personalities and your encounters with them will not carry the same experience as your ex-relationship.