A latest script was added here:
In it, search term accepts regular expressions so the script can be used for ‘range or so-called proximity search’: e.g. <searchterm1>.*?<searchterm2>
will find the two terms in their closest vicinity of one another and the full paragraph will be printed for context. The <
and >
are not part of the syntax, of course.
- Same thing as in the Obsidian search modal, but there you need to put in at least the opening
/
slash to indicate we want to use regex. - The search done in the DV query like this is more superior as one can copy out the results for further processing. I expect later Obsidian versions will have this functionality in-built.