I have used this kit from Qiagen to cut out my PCR products from low melting agarose gels to have them tested to determine if the band that I am seeing is actually the band of interest that I am seeking. It worked very well for me and is not too expensive
As Brandon eloquently put it, you can order a kit to perform the extraction. However, if you are in a race against time or if you have budget constraints, you can do it without a kit.
Excise the desired portion of the gel containing your target DNA, put it in a tube, freeze it and smash it using a teflon pestle and soak it in this buffer (300 mM Sodium Acetate
1 mM EDTA (pH 8.0), 0.1% SDS if desired). Shake for up to 2 days to maximize recovery, and discard the buffer . Note that if you are seeking a high degree of purity, a kit will be a much better alternative.