The filter syntax makes it impossible to directly specify a regular expression that contains square brackets. The solution is to store the expression in a variable. See the examples.
Basically, if you define your regular expression globally (in a tiddler marked as $:/tags/Macro ) :
Hi,
Thanks a lot for your answer & details.
As a consequence I looked at different javascript macro that I’ve developped & where I use the $tw.wiki.filterTiddlers()
I noticed also that this tw javascript method does not support the regex with square bracket neither. Do you have an idea how I could, in my javascript macro workaround this problem ?
In my javascript I’ve tried to use ‘’ before the ‘[’ like 2023-09-(0\[4-5\]) but no succes (even with ‘\’ …)