gene tani wrote: > Plus, how do you order "https:", "ftp", URLs with "www.", "www2." , > named anchors etc? Now is a good time to point out the urlparse module in the standard library. It will help the OP with all of this stuff. just adding my 2 cents. ... jay graves