Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2003
    Posts
    7

    Unanswered: Parse domain from a URL

    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

  2. #2
    Join Date
    Aug 2003
    Posts
    7
    Never mind - much simpler than I thought:

    substr(URL , 0, (instr(URL , '/', 1)-1))

    Will return what I wanted. Guess it's here for anybody else to use as well!




    - Eric

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •