Find AAA or BBB then Replace - possible

General questions about using WildEdit

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
KevinP
Posts: 1
Joined: Fri Nov 05, 2004 11:45 pm

Find AAA or BBB then Replace - possible

Post 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
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

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