The best revenge is living well.
Pick yourself up, dust off some of the anger and get to work. Focus on solving one problem and move on to the next. Renew your faith, in a higher power of your choice and in yourself.
You have to let go. Let all of the pain and anger and frustration and confusion. All of it. Let it go.
A symbolic yet satisfying method is a visible way for you to see how this can work for you. Get two white helium balloons. Write your two most important worries on them with black magic marker. Go outside into your front yard and release them. Watch them float away. Watch them until you can't see them any more. And then they're gone.
This doesn't mean you still won't feel the pain. It's only meant to show you how when you let go, you let go. Those balloons will travel to where ever they do, but they will not come back to you.
Inflicting pain on your x, that's not as satisfying as you think it will be. In the end, it actually will make you feel shittier about yourself. Please don't do that. Find a more constructive way to help yourself. You will get through this.