What I’m trying to do
filter notes by name in a bases table using a string stored in frontmatter
Things I have tried - openly admitting to massively guessing
filters:
and:
- note.artist.matches( file.name )
filters:
and:
- file.name.matches( note.artist )
Pch
June 7, 2025, 1:39pm
2
You could try to play around with this
(using maybe this.note.artist
) :
See here: Access properties of the current file
I’m successfully getting my frontmatter string using note.artist
. Using it as a regex is the thing that’s stumping me.
Pch
June 7, 2025, 1:48pm
4
To be honest, I would probably just use .contains()
before going to RegEx …
You might need to convert the note.artist
into a proper RegEx though (surrounding it by a slash (/
))
I need regex, I’m afraid.
surrounding with ‘/’ isn’t doing the job. I think it’s just treating the actual text between the slashes as a string rather than picking up the property
Pch
June 7, 2025, 3:06pm
6
After a quick test, this is indeed what seems to be happening …
bummer. Thanks for the input, though.