You're dating a douche bag. Yes, you. Dump him. He's not that into you and you aren't really that into him since you still want your ex... If you think this message is for you, IT IS.....
Don't hold onto anger. Don't blame others for your mistakes. Apologize for your mistake, learn from it. From that point on, it's really out of your hands.