Clean html tags

General questions about using TextPad

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

Post Reply
rrhandle
Posts: 11
Joined: Thu Mar 23, 2006 4:03 pm

Clean html tags

Post by rrhandle »

I want to clean all the tags in the document of any styling.

Examples:

<p class="alert"> = <p>
<p style="width: 20px> = <p>
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Do a find and replace with these parameters:

Find what: <([a-zA-Z0-9]+)_.*> (replace the underscore with a space)
Replace with: <\1>

This assumes you've enabled POSIX regular expression syntax in the Preferences.

Andrew
Post Reply