how about #cgi.server_name#?

On Tue, Mar 25, 2008 at 6:09 PM, William Seiter <[EMAIL PROTECTED]> wrote:
> <cfif listfirst([variable],".") eq 'www'><cfset
>  listdeleteat([variable],1,".")></cfif>
>
>  I am certain that there is a REGEX guru here who can put you in turn with a
>  good regex expression to do this as well, though.
>
>  ::-----Original Message-----
>  ::From: Nate Willard [mailto:[EMAIL PROTECTED]
>  ::Sent: Tuesday, March 25, 2008 6:04 PM
>  ::To: CF-Talk
>  ::Subject: Re: How to obtain just the domain from a URL
>  ::
>  ::listGetAt(url, 2, '/') works very well too, thanks! it does return the
>
> ::www. though, is there a way in the same line to remove the www without
>  ::needed a "www." replace ""
>  ::
>  ::?
>  ::
>  ::Thanks
>  ::
>  ::Nicholas M Tunney <[EMAIL PROTECTED]> wrote: Good call.  That
>  ::behavior frustrates me ;)
>  ::
>  ::Nic
>  ::
>  ::Charlie Griefer wrote:
>  ::> listGetAt(url, 2, '/') since CF ignores empty list attributes, no?
>  ::>
>  ::
>  ::
>  ::
>  ::
>  ::
>  ::
>
>  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302076
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to