At 09:37 AM 07/02/03 -0500, Chris Alvarado wrote:
>function is that it will strip anything before the first "." if there is
>anything. So, http://www.something.com is returned as something.com .
>However I need the hostname as well. I would modify the existing
>function, however I am not too keen on RegEx atm.

I would think you could use something like this:
<cfset DomainName=listgetat("http://www.something.com",2,"/";)>
<cfset HostName=listgetat(DomainName,2,".")&"."&listgetat(DomainName,3,".")>

T

Tired of your bookmarks/favourites being limited to one computer?  Move 
them to the Net!
www.stuffbythane.com/webfavourites makes it easy to keep all your 
favourites in one place and
access them from any computer that's attached to the Internet. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Get the mailserver that powers this list at 
http://www.coolfusion.com

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

Reply via email to