Why not use a regex to get stuff between the // and first single /? Or you can walk through the string find the // pair and start looking for the next /, everything in between is the domain name. --- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative."