I also have a few friends who really put this in perspective and help me keep a confident mindset that I have a lot going for me and am not dependent on her for my identity. One friend in particular is realistic in terms of understanding how even though this other person screwed me over and possibly cheated, I still miss her and care about her. I feel I trust his opinion more than most since he knows what it's like and how conflicted you feel. His attitude is that he doesn't give me [censored] for still caring about her, she will probably come back to me eventually, and it's up to me whether I want to be with her or go on to someone else.
I think anything you can do to keep your mind off the marriage/divorce (as long as it's not destructive) is a good thing. Nothing is better than good friends.
T 10 years, M 4 years, both 28 years old 7/3/2013 - W wanted D, we attempted to reconcile 7/20/2013 - discovered W's EA, attempted to reconcile 8/24/2013 - W told me she wanted D, filed papers