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:
- Select Find > Replace from the menu bar
- Ensure regular expressions is selected
- Past the following regex into the find field (note the trailing period):
^.*Yellow highlight.*\n
- Replace all with an empty space!
This leaves you with a relatively clean copy of your highlights.