indi visual
Member
I've been using these wildcard searches to replace with nothing -blank-.
www*com
-or-
http*com
However, these strings I need to get rid of are much more complex (for instance sometimes .net or sometimes .org or sometimes in brackets or sometimes not starting out with www. or http at all).
I almost have the perfect solution.
There are 252 url domain extentions (or at least that I have a list of that I care to search for anyway). I've listed them all in a macro that runs through every possible combination of strings and removes them (without jeopardizing the integrity of text I wanna keep) -and also without jeopardizing the text in brackets I wanna keep as well.
However, my main problem are the strings that don't start with "http" or "www". Because of this, when I run my search and replace macro on URL strings with random start markers they result in:
before:
(urlname@such.com)
after:
(urlname@such
This is a problem of course because the only thing I could successfully remove was the ".com)"
Note: I could use (*), but I have text in other brackets that I would like to keep, and some of those brackets could potentially be sharing the same cell with the bad bracket sets. Also, they are not all at the end of the cell or the beginning (mixed locale).
If I could find a way to remove the brackets (*) that only contain the word ".com" or ".net" etc.., then
I will be able to knock the majority of them out (without removing the data in the brackets I wanna keep) because almost all of these URLs are in brackets.
So far my macro is a little over a thousand lines, because I have to be careful not delete a single letter of text I don't intend to. The search and replace has to be laser surgical sharp.
However, if anyone has a more quicker brilliant idea on how to remove them all the same way I am definitely taking notes.
www*com
-or-
http*com
However, these strings I need to get rid of are much more complex (for instance sometimes .net or sometimes .org or sometimes in brackets or sometimes not starting out with www. or http at all).
I almost have the perfect solution.
There are 252 url domain extentions (or at least that I have a list of that I care to search for anyway). I've listed them all in a macro that runs through every possible combination of strings and removes them (without jeopardizing the integrity of text I wanna keep) -and also without jeopardizing the text in brackets I wanna keep as well.
However, my main problem are the strings that don't start with "http" or "www". Because of this, when I run my search and replace macro on URL strings with random start markers they result in:
before:
(urlname@such.com)
after:
(urlname@such
This is a problem of course because the only thing I could successfully remove was the ".com)"
Note: I could use (*), but I have text in other brackets that I would like to keep, and some of those brackets could potentially be sharing the same cell with the bad bracket sets. Also, they are not all at the end of the cell or the beginning (mixed locale).
If I could find a way to remove the brackets (*) that only contain the word ".com" or ".net" etc.., then
I will be able to knock the majority of them out (without removing the data in the brackets I wanna keep) because almost all of these URLs are in brackets.
So far my macro is a little over a thousand lines, because I have to be careful not delete a single letter of text I don't intend to. The search and replace has to be laser surgical sharp.
However, if anyone has a more quicker brilliant idea on how to remove them all the same way I am definitely taking notes.