Hi,

the pattern:

^\w+:\/\/(?:www\.)?([^/]+)\/

should do the trick even if im not sure if the cf-regex-engine can handle "(?:" 
patterns. the domain (without the www.) will be in the first sub-match (\1)

for example:
<cfset domain = REReplace(fullURL,"^\w+:\/\/(?:www\.)?([^/]+)\/","\1")>

hope this works, i didnt test the code.


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


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302097
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