View Single Post
Old 07-04-2025, 12:33 PM   #1
ReaderOfBooks1
Junior Member
ReaderOfBooks1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2025
Device: Kobo
Searching for books with annotations

Hey all,

I've been playing around with the experimental "Annotations" import feature. Great to see it added, it seems to be working so far.

What I am trying to accomplish is to figure out how to search for books where the annotations have been imported. Example syntax:

Chapter 8: 5
Highlight
Chapter progress: 65.62%
Highlight:


I am trying to use a regex to find this, but am struggling. I'm either getting false positives or the regex returns nothing. I am aware it is most likely an error on my part, and would appreciate any help from the community.

Works with false positives: comment:"Highlight" and comment:"~Highlight\s"
Example that doesn't work: comment:"~^Highlight\s$(?m)"

What I am trying to get based on the above syntax that doesn't seem to work (pseudocode): comment"[use regex][match start of line][match Highlight][match trailing whitespace][match end of line][use mode to match start and end of line]"
ReaderOfBooks1 is offline   Reply With Quote