Generally in dry, bright light pinworm eggs survive for a very short time, only about 6 to 8 hours, but in dark, moist environments, pinworm eggs can survive for about 2 to 3 weeks. So the survival time of pinworm eggs on underwear can vary due to a number of factors, and can be treated by physical and medicinal means. The eggs of pinworms are usually found at night between 11:00 p.m. and 1:00 a.m., when the anal sphincter muscle relaxes and the female pinworms crawl out of the anus and lay eggs in the perianal area, causing patients to suffer from perianal itching and other uncomfortable symptoms. Physical prevention and control should pay attention to wash hands before meals, keep the perianal area clean and hygienic. If it is determined that there is pinworm infection, you can take drugs such as albendazole or levamisole tablets under the guidance of the doctor for deworming treatment. Patients usually pay attention to dietary hygiene, do not eat unwashed fruits and vegetables, and try not to eat in unclean environments to avoid pinworm infection.