To properly replace the elastic in your underwear, first remove the old elastic and measure the length needed for the new elastic. Cut the new elastic to size and sew it onto the waistband using a zigzag stitch. Be sure to stretch the elastic as you sew to ensure a snug fit.