3 things:
1 - don't date long-term friends, the relationship always regresses back to friendly-feelings.
2 - do better next time, maybe as a partner, but more likely in choosing a better match for you
3 - the two key things to helping yourself feel better are: 1, time, 2, acceptance that its normal to feel bad, and its perfectly ok and natural, and it will chnage.