If red wine is spilled on your carpet don't worry you can save this! Sponge the stained area with carbonated soda water. Blot well (do not rub) as rubbing pushes the stain in further. Then dab the area with a cloth damp with detergent solution followed by a rinsing with clean water. If the stain persists you can use a solution of half glycerin and half water diluting the stain and this solution can be left on the stain for up to an hour then rinsed off with a warm water and blotted well with a clean dry cloth.
If a wine stain persists, you can try dabbing the area with some hydrogen peroxide. And wash as described above.
If you have cream of tartar handy, a paste of cream of tartar and water spread over the stain will work out the stain when washing again as described above.