Page 1 of 1

Find AAA or BBB then Replace - possible

Posted: Fri Nov 05, 2004 11:54 pm
by KevinP
I have some broken URLs on sitemap pages, and I'm trying to remove them. I've identified what the broken links are, I just can't figure out how to get them in the find box to replace.

Example:

Find these (yes, leading spaces are included, always):
<a class="link1bd" href="Bartow.htm">Bartow Page</a>
<a class="link1bd" href="Bee Ridge.htm">Bee Ridge Page</a>

And replace with a space character, effectively blanking out that URL. Run individually, the links are found and then replaced, but I can't get it to run incrementally. There are about 450 cases, so I don't really want to go through them one at a time. Any ideas?

Thanks,
Kevin

Posted: Sat Nov 06, 2004 2:16 am
by s_reynisson
This regular expression selects both url's in your post, the "_" stands for space.

_*<a class="link1bd" href=".*?\.htm">.*?</a>

If "leading spaces" are not in front of the url you can move the _* to the correct place. I hope that helps.