Try this: {{{ [has[path]] :filter[get[path]suffix<__chunk__>] }}}
On Saturday, April 17, 2021 at 10:26:04 AM UTC+2 Mat wrote: > I have a variable <<__chunk__>> with e.g the value bar/ and need to find > which tiddlers have a path field with where this value is a *suffix*. For > example, I need to find the two tiddlers that have these respective path > fields: > > path: foo/bar/ > path: frotz/bar/ > > It seems I must[1] use a regexp but I can't get this to work: > > <$vars chunk="bar/"> > <$vars reg="[<chunk>$]" > > <$list filter="""[all[tiddlers]regexp:path<reg>]"""> > <$link/> {{!!path}}<br> > </$list> > </$vars> > </$vars> > > (In actual use, the chunk variable is remote so it reads > reg="[<__chunk__>$]" ) > > Is the regexp wrong? What to do? Better ideas? > > Thank you! > > <:-) > > *Note* > [1] Using the filter operator <https://tiddlywiki.com/#filter%20Operator> for > a subfilter does not work because the filter op has a bug > <https://github.com/Jermolene/TiddlyWiki5/issues/5592>, i.e this does not > work: > > <$vars subfilter="[get[path]suffix<__chunk__>]"> > {{{ [all[tiddlers]has[path]filter<subfilter>] }}} > </$vars> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b01b2843-aa51-4e39-9f59-3fff12b73e2an%40googlegroups.com.