Page 1 of 1

Removing extraneous labels from within an HTML tag

Posted: Tue Jul 06, 2004 12:57 am
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

Posted: Tue Jul 06, 2004 1:34 am
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.

Posted: Tue Jul 06, 2004 1:36 am
by s_reynisson
Shorter version ;)
Find ADD_DATE="[^>]+"

Posted: Tue Jul 06, 2004 2:36 am
by BenjiSmith
Curses. I've been foiled by s_reynisson's superior intellect.

Just wait till next time....