There's nothing worse than ruining a perfectly good pair of underwear! I've always wondered why on the days my period catches me by surprise, I am inevitably wearing a cute pair of white or cream underwear. I've found that for me the best way to prevent stains is to either wear dark colored panties or a liner during the week before my period, just in case I get caught off guard.
I've found the best way to remove stains from your underwear is to soak them in cold water for at least 10 minutes. For whites, you should then use a little hydrogen peroxide or diluted bleach (one part bleach to six parts water) and gently rub this into the stain with a white cloth. For colors, you can mix two parts of water with one part salt, soak the fabric, and rub the stain with salt. Once you've treated the stain, wash your panties in cold water. Make sure the stain is gone before you put the panties in the drier. Repeat these steps if it's not.
If I had a dime for every pair of panties I've ruined. Maybe try pretreating your panties with a commercial product or hydrogen peroxide and then wash in cold water - hot water sets stains. I keep "old" panties around for that time, so I wouldn't feel bad if they get stained.
Soak stained clothes in ice-cold water, preferably overnight (did you know hot water will set the stain?), then wash as normal. Also, if I know my period is due, I try to make sure I'm prepared with a tampon or liner and my favorite undies will stay in the drawer. Just in case!
Do not include personal information within comments including name, age, location.