Results 1 to 7 of 7
  1. #1
    5 Star Lounger
    Join Date
    May 2001
    Location
    Philadelphia, Pennsylvania
    Posts
    676
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Deleting HTML text (IE 5.5.4134.0600)

    I have exported my Favorites to an HTML file for use on my website. I see these "ADD_DATE="1049247979" LAST_VISIT="1052366400" LAST_MODIFIED="1049247978" things all through the file. Not being a programmer, I can't devise a way to delete this ugly text from my file. Is there a way via Word (or NoteTabLight, which I have) to specify such a string for highlight and deletion? TYIA

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting HTML text (IE 5.5.4134.0600)

    Well, this could be kind of a trick. The date format you're seeing is a decimal integer that represents the number of seconds elapsed since midnight January 1, 1970. Netscape uses the same format for its bookmarks. Thus, there's not an easy way without running a conversion or using a wild card to "seek and destroy" a text string like this. Those dates shouldn't be appearing in the output file - are they?
    -Mark

  3. #3
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting HTML text (IE 5.5.4134.0600)

    If you want to use Word, check "Use wildcards" in "Find and Replace", and the following string in "Find what:" should do the deed:

    <(*=")?{10}"

    Enter as shown, including the quotes, and leave "Replace with:" empty. (The find string looks for "words" that have 0 or more chars at the start followed by equal and quote, followed by any 10 chars and a final quote.)
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Philadelphia, Pennsylvania
    Posts
    676
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting HTML text (IE 5.5.4134.0600)

    That's real close! In my test segment, it did not start at the right location. I'm fiddling with it to get it to pickup ADD_DATE as the start point and count the 24 or so characters to its right as the find string. I'm not familiar with the syntax. I will look in help, but meanwhile, can you help me out?

  5. #5
    5 Star Lounger
    Join Date
    May 2001
    Location
    Philadelphia, Pennsylvania
    Posts
    676
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting HTML text (IE 5.5.4134.0600)

    They came along with the rest of the links when I used the Export Bookmarks Uitlity in IE, so I had no options.
    The number of seconds elapsed since midinight, January 1, 1970, huh? No wonder the world is going crazy! It should be the number of seconds elapsed since my birthday. Thanks for the factoid. I wonder what that date represents that they should choose it.

  6. #6
    5 Star Lounger
    Join Date
    May 2001
    Location
    Philadelphia, Pennsylvania
    Posts
    676
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting HTML text (IE 5.5.4134.0600)

    Got it! I changed it to <(ADD_DATE)?{64} which highlighted all the way up to the end of the last field I wanted deleted. I was able to replace 1,963 entries with this mechanism, so I thank you profusely. <img src=/S/salute.gif border=0 alt=salute width=15 height=20>

  7. #7
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting HTML text (IE 5.5.4134.0600)

    Glad you got there. Your query got a few of the little grey cells ticking. Word's Find & Replace is quite powerful (brings back memories of grep and awk), but sometimes you need a but of persistence to get the desired result, especially if you use it infrequently.
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •