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 for a subfilter does not work because the filter op has a bug, i.e this does not work:
<$vars subfilter="[get[path]suffix<__chunk__>]">
{{{ [all[tiddlers]has[path]filter<subfilter>] }}}
</$vars>