For my book posts, I was looking for an easy way to export my Kindle Highlights. I was hoping for a true export but the best I’ve found so far is Amazon Kindle Notebook. This gives me a relatively clean page to copy and paste from but you end up with a lot of entries like this:

Yellow highlight | Location: 564
My awesome quote!

Yellow highlight | Location: 566
Another cool quote...

Using Sublime Text, you can use easily clean this up by:

  1. Select Find > Replace from the menu bar
  2. Ensure regular expressions is selected
  3. Past the following regex into the find field (note the trailing period):
^.*Yellow highlight.*\n
  1. Replace all with an empty space!

This leaves you with a relatively clean copy of your highlights.