Hi - having problems with variables in filters. The code below doesn't produce any results:
\define rx_TidID_RelType(Tid RelType) "$Tid$".*"$RelType$" \end ------------- ''All Sub-tasks of this tiddler'' <$set name=rxSearch value=<<rx_TidID_RelType {{!!tmap.id}} SubTaskOf>>> rxSearchTerms: <<rxSearch>> <$list filter="[regexp:tmap.edges<rxSearch>]"> </$list> However, it's producing the regex search correctly on examining the output: ------------------------------ *All Sub-tasks of this tiddler* .*rxSearchTerms: "087aa75e-ec77-4cd2-a774-c41c0ee52382".*"SubTaskOf <file:///S:/TiddlyWiki/Experiments/Test%20Sites/test4.html#SubTaskOf>" tmap.edges essentially holds an array, thus having to use regex. Here's a couple of examples of data from tmap.edges: "a2373aa7-f71b-48e3-ac64-10e464c135a8":{"to":"087aa75e-ec77-4cd2-a774-c41c0ee52382","type":"SubTaskOf" "a2373aa7-f71b-48e3-ac64-10e464c135a8":{"to":"087aa75e-ec77-4cd2-a774-c41c0ee52383","type":"SubTaskOf" The RegEx search is resolved to something like this format: .*"087aa75e-ec77-4cd2-a774-c41c0ee52382".*"SubTaskOf" I know this works: regexr.com/4hqih I also have it working filtering results at other points in my code: <$list filter="[regexp:tmap.edges{!!tmap.id}]"> </$list> this produces a list of all entries matching the current tiddler's tmap.id Why isn't variable substitution working in this instance? I chose to use a macro due to the complexities introduced into doing it inline with special characters (quotes in this instance) Any help[ much appreciated (I know I'm hitting these forums hard tonight, but just learning TiddlyWiki!) -- 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/7cb0e0ed-a78e-415b-bb47-85ce23c87387%40googlegroups.com.