I do what my mother taught me:
Wash them in a regular wash cycle with cold water, dry for 10 minutes on high heat, hang on hangers to let them dry out.
I've been doing this since I was like 12 years old and it hasn't failed me yet, even with my riding gear.