Cleaning up HTML

General questions about using TextPad

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

Post Reply
Ed Hansberry

Cleaning up HTML

Post by Ed Hansberry »

I need to clean up some HTML files and need to find either open tags where there is no closing tag or closing tags where there is no open tag.

For example.

blah blah blah blah </i> blah blah </i>blah blah <i> blah blah blah </i>

How can I do a search that would find </i> followed by another </i> but ignore it of there was a <i> between it? I have tried </i>[A-Za-z0-9 [:punct:][^(<i>)]*</i> but that isn't doing it.

thanks.
mridew

Re: Cleaning up HTML

Post by mridew »

Post Reply