Skip to content

regexmatch on file.outlinks #621

Answered by blacksmithgu
adueck11 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Use file.name instead of name to get the proper file name of a file, since file.outlinks is a list of links.
  2. regexmatch(, file.outlinks) produces a list of true/false values, one for each outlink. Dataview considers this to be a match if the list is non-empty, which is not what you want. Instead, use any(regexmatch(...)), which checks that at least one outlink matched.

I think this will work, or at least get closer to what you want:

table file.outlinks
from #BibleVerseNote 
where any(regexmatch("Joh \d+,\d+", file.outlinks.file.name))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adueck11
Comment options

Answer selected by adueck11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants