Soda Water works great and even salt can help in getting the stain out. If you are a “just in case” person and want to be prepared, you can even by a product actually called “wine away”, hence the name it removes wine J
But I am going to tell you a secret that works better than all of the above. White wine. Yes indeed. And I have to give credit to my Irish friend, Niamh, for that. She was the one who gave me a show and tell, after spilling red wine over my light colored carpet a few years back. Next thing I see her pouring white wine on top of the red wine, and with a little scrubbing – gone. Thanks Niamh!