Nate,

>Would I use a REGEX to achive this? Or some other method?
>
>Start with something like:
>http://www.popularmechanics.com/technology/military_law/4255750.html
>
>End up with:
>popularmechanics.com
>
>Example 2
>
>Start: http://blogs.abcnews.com/politicalpunch/2008/03/dnc-official-cl.html
>End: blogs.abcnews.com

A while back I wrote a UDF for parsing a URL which will give you all sorts
of information about the URI:

http://blog.pengoworks.com/index.cfm/2006/9/27/CFMX-UDF-Parsing-a-URI-into-a
-struct

This will correctly parse the domain (and many other things) out of any
valid URL, including:

http://usr:[EMAIL PROTECTED]:80/bar/sub/file.gif;p=5?q1=item1&q1=item2&q2=item
3#nameAnchor

-Dan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:302091
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to