I have a list of thousands of URL's that I need to regularly edit and I have been manually doing this with a find and replace, but I would like to automate the work. Unfortunately there is very little consistency in the domain structure and a text to columns approach won't work.
I need to do the following with this list of URL's:
-Eliminate the "WWW" in front of all domains when it appears (this is the easiest find and replace aspect)
-Revise all sub-domains to only show the domain level info (remove the sub-domain part of the domain). For example, "help.cnn.com" needs to change to "cnn.com". However, there are thousands of sub-domain variations and keeping a list of them all is not an ideal way to approach (but keeping a list is possible if there are no other options)
-For country specific domains I need to keep the country parts of the URL.
For example, I need the list to go from:
Breaking News, U.S., World, Weather, Entertainment & Video News - CNN.com
help.cnn.com
blog.news.com
bbc.co.uk
To this:
cnn.com
cnn.com
news.com
bbc.co.uk
My domain list is in column E.
Is there a macro that can be created to do this or does anyone have alternative recommendations? when doing find and replace via a macro and a list can I still use the "*" function to find and replace any sub-domain against a specific domain (i.e. can I search *.cnn.com to change to cnn.com via a macro)
Thanks!
I need to do the following with this list of URL's:
-Eliminate the "WWW" in front of all domains when it appears (this is the easiest find and replace aspect)
-Revise all sub-domains to only show the domain level info (remove the sub-domain part of the domain). For example, "help.cnn.com" needs to change to "cnn.com". However, there are thousands of sub-domain variations and keeping a list of them all is not an ideal way to approach (but keeping a list is possible if there are no other options)
-For country specific domains I need to keep the country parts of the URL.
For example, I need the list to go from:
Breaking News, U.S., World, Weather, Entertainment & Video News - CNN.com
help.cnn.com
blog.news.com
bbc.co.uk
To this:
cnn.com
cnn.com
news.com
bbc.co.uk
My domain list is in column E.
Is there a macro that can be created to do this or does anyone have alternative recommendations? when doing find and replace via a macro and a list can I still use the "*" function to find and replace any sub-domain against a specific domain (i.e. can I search *.cnn.com to change to cnn.com via a macro)
Thanks!