First, realize you are worth so much more than what your H is doing. Don't lose your confidence, in fact, use this to get more!

Don't lose yourself, find yourself. Don't wallow in trying to figure out what he's doing and thinking. This is about you now.

If he wants to come back, great, if not, great. You cannot control him but you can certainly influence the situation.