@Maurycy I have found an inconsistency. I’m not sure it’s a bug, since I don’t know if this feature is supposed to be supported. And there’s an easy alternative in my use case anyway.
I need to use the regexp
operator with a regular expression containing the character class/ range [a-z]
in its parameter. In this case the the parameter cannot be literal regexp[[a-z]]
.
I tried the solution indicated in TW docs, that is to use a variable. I defined a global macro (tagged with both $:/tags/Macro
and $:/tags/Global
just in case) with the regex.
Using regexp<myMacro>
(just a part of the filter ofc) yields this strange result:
- “Test the filter” table in the trigger config shows proper results (in my case all titles starting with lowercase, by using regex
^[a-z]
)
- Using the filter “in the wild”, it looks like the macro simply doesn’t work/ evaulates to nothing, or as if
regexp[]
was used.
I ended up using a data tiddler regexp{dataTiddler##property}
and it works well everywhere. Same with field transclusion regexp{tiddlerWithFields!!field}
.
Just wanted to let know. It’s not actually a problem for me, since I found the alternatives.
Edit: I’m using TW v5.3.1 and AC v1.0.18