I'm trying to find out if anybody has written a function that will parse just the domain name from a URL. For example, where the URL =

www.yahoo.com/Computers_and_Internet/

the function would then return:

www.yahoo.com



Am I crazy, or has somebody written this before? If so, is there some code that I can leverage in finding a solution? Thanks in advance.....



- Eric