listgetat(url, 2, '/')

should work.  If you need something more robust, I have used

rereplace(url, "http://([^/]*)/.*", "\1")

with good results.  Please note that I typed that off the cuff instead of
remembering where I stashed my code, so YMMV.  :-)


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: Gormley Patrick-r34220 [mailto:[EMAIL PROTECTED]
: Sent: Thursday, June 05, 2003 3:04 PM
: To: CF-Talk
: Subject: parse url
:
:
: Hi,
: Can someone help with extracting a host from an url
: Example:
:  http://subdomain.sps.mot.com/asdf/file.cfm
: <http://subdomain.sps.mot.com/asdf/file.cfm>
: to just subdomain.sps.mot.com
:
:
: Patrick Gormley
:
:
:
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to