How to move on from your ex

We broke up offically after being on and off but I can't get him off my mind. I can't stand this feeling because he's done so much (cheating, lying, ect.) to me yet I still have strong feelings for him. I try to uplift myself everyday by saying stuff like you're better off with out him and I even try to pretend like I don't miss him but I do so bad! I try to distract myself by hanging out with friends or working, spending time with my family and nothing is working. I cry almost every night wishing he would call, but I know he's talking to other girls and it hurts. I can't even think about being with someone else, this  feels like the hardest thing I've ever done and I just don't know how to move on completely.