Sewing machine to the rescue.
Dan ran out of clean underwear. “I can fix that!” I said. “I have a sewing machine!” Rummaging around in my fabric stash and pile of old clothes, I found a pair of old cotton pyjama bottoms. The elastic was still there, and the fit was fine.
I marked the length, chopped off the legs, folded and ironed the hems under twice (double hem) so they wouldn’t fray. I had some red thread already bobbined and threaded in my sewing machine, so did two rounds at the bottom and top of the hem to give two neat lines of stitching.
Et voila! Problem solved in a jiffy.