Removing extraneous labels from within an HTML tag

General questions about using TextPad

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

Post Reply
prmyers
Posts: 2
Joined: Mon Jul 05, 2004 7:10 am
Location: Karabar, NSW, Australia
Contact:

Removing extraneous labels from within an HTML tag

Post by prmyers »

Can anyone suggest how I might be able to remove the _ADD_DATE="1076927609" LAST_VISIT="0" LAST_MODIFIED="0"_ entries from the Netscape Bookmark _<A HREF="http://www.craigieburnresort.com.au/" ADD_DATE="1076927609" LAST_VISIT="0" LAST_MODIFIED="0">_ entry, regardless of the "ADD_DATE" entry - that is, not every "ADD_DATE" entry in this file is the same but, when I convert the tags (see my suggested Enhancement email) I currently have to leave these entries intact and while they don't seem to affect the operation of the resulting HTML, their removal would considerably reduce the size of the resulting new file.

Any suggestions as to "How-To" the keystrokes I might record to do this for me in a single process would be great.

Thank you

Paul Myers
Paul Myers, JP(NSW), BSc(UNSW), MACS, MACM
PO Box 7007 Karabar NSW 2620 AUSTRALIA
Ph/Fx: 02 6299 2392/+61 2 6299 2392
Mobile: 041 629 9239/+61 41 629 9239
Email: prmyers@acslink.net.au
User avatar
BenjiSmith
Posts: 49
Joined: Fri Jan 16, 2004 9:37 pm
Contact:

Post by BenjiSmith »

You can do it in the Search/Replace window, using...

Find: +ADD_DATE="[[:digit:]]+" LAST_VISIT="[[:digit:]]+" LAST_MODIFIED="[[:digit:]]+"

Replace:
(i.e., leave the replace field blank)

Make sure that the "Regular Expression" box is checked, and then click the "Replace All" button.

Hope that helps.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Shorter version ;)
Find ADD_DATE="[^>]+"
Then I open up and see
the person fumbling here is me
a different way to be
User avatar
BenjiSmith
Posts: 49
Joined: Fri Jan 16, 2004 9:37 pm
Contact:

Post by BenjiSmith »

Curses. I've been foiled by s_reynisson's superior intellect.

Just wait till next time....
Post Reply