Hang in there man. I have been divorced twice and it aint no picnic, but it can, in the long run, be the best thing for you.
Just always (and I say ALWAYS) put your kids first. You can find another woman. (Trust me there are plenty out there.) You are a grown up. You know these things happen.
But its a different ballgame for the kids. You should make sure your wife understands this too.
Try not to hate your wife, especially in front of the kids. And see the kids as often as you can, and learn right off that you cannot say anything bad at all about her in front of them, in other words, learn to ignore your true feelings and pretend when you are in front of them, and do not slip up when you are talking to a friend on the phone while they can overhear you.
Their eyes are on both of you, and they are watching and needing you now more than ever.
Again, hang in there, and know that this is probably best for you, but it may take some time to fully realize that, and that's ok too.
Time is your friend.
But if you and the wife decide to work things out, then go for it.
BTW, my kids have grown into wonderful adults. My son from the first marriage is now 29 and a minister. He has given me my first grandchild with another on the way. My daughter from the second marriage is a beautiful young lady of 21. She is currently going to college and wants to get into the medical field. I am very proud of both of them.
So there is always a silver lining and things usually work out for the best.
Best of luck to you man!