Keep the stain from setting. Use the Hydrogen Peroxide mixed 50/50 with water, then sprayed onto the stain and let set for at least 30 minutes, this will usually get most stains out. Rinse with a 50/50 mix of vinegar and water, and then launder as usual. Do not dry until stain is completely gone.
Foaming Shaving Cream
Spray enough shaving cream directly onto the stain to completely cover it. Gently blot into the stain. You do not need to fully dissolve the cream; it can sit on top of the stain as well. Allow to set for 30-40 mins. Launder as usual.
DISCLAIMER: Tuxedos Carpet Care is not affiliated with the above mentioned product and cannot be held responsible if the above mentioned product or procedure causes damage to your carpet.