...it only hurts.
It passes. Feelings pass, thoughts pass. Everything passes in time. The key being, "in time"- riding the waves, rolling with the punches. There is nothing you need to DO about thoughts and feelings, except wait them out.
This sounds kind of trite and undermining- I don't mean it to. It seems to be true though. If I have a thought, a feeling, an urge- as long as I don't dwell on it or act on it, it dissipates in time. The more I think about it, the stronger it gets as I give it more power, until it is all-consuming and I can't see another option BUT to act on it. By accepting the thought as it is ("it's JUST a thought"), without giving it more power than it merits, it passes.