Editing Firefox bookmarks with regex in Notepad++

I need to combine multiple bookmarks files and reduce the size, but I don’t know how to use regular expression.

I want to:

  1. Delete every instance of www.
  2. Replace every instance of https: with http:
  3. Delete every line that starts with <DD>
  4. Delete the following tags and the (unknown) text between the
    qoutes: ICON_URI="...", ICON="...", and LAST_CHARSET="..."
  5. Replace the text between > and </A>
  6. Delete duplicate lines
  7. Sort lines alphabetically

Source: bookmarks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.