Oh, wouldn't you like four ?

BTW, I think it's pretty amazing if /.../ works.

For the original use case at the top of the thread, you could make a global 
macro ($:/tags/Macro) with:

\define halfmonth() 201909(0[1-9]|1[0-5])

and then use this in the advanced search filter:

[regexp:create<halfmonth>]

You could obviously modify this "halfmonth" to just look for 01 thru 15, 
and then use a regexp preceding it to look for the year and month. So you 
could use it throughout the year.




On Monday, September 23, 2019 at 5:40:41 AM UTC-7, @TiddlyTweeter wrote:
>
> This posted has been updated to cover three ways of using regular 
> expressions to match in a field in the Advanced Search: Filter
>
> TT
>
> On Monday, 23 September 2019 12:40:15 UTC+2, @TiddlyTweeter wrote:
>>
>> Ciao Cd.K & TonyM 
>>
>> You may not be aware there is *already a DIRECT way to use "[...]", 
>> without a variable* in TW.
>>
>> It emerged, I think, for the older *field operator* that is not, 
>> possibly, fully documented? 
>>
>> I discovered what it can do by accident. 
>>
>> *I assume it still works that way for backwards compatibility.*
>>
>> Here is an example you can test in the latest online TiddlyWiki version 
>> Advanced Search ...
>>
>> [field:created/^201909[2]/]
>>
>> ... equivalent to ...
>>
>> [regexp:created[^201909(2)]]
>>
>> or ...
>>
>> [search:created:regexp[^201909(2)]]
>>
>>
>> Result for all three is ...
>>
>> [image: Annotation 2019-09-23 122110.jpg]
>>
>> Best wishes
>> TT
>>
>>
>> Cd.K wrote:
>>>>
>>>> TonyM
>>>>
>>>> Advanced Search with regexp:created and nested square brackets:
>>>>
>>>>
>>>> [image: 23-09-_2019_04-48-05.png]
>>>> The solution is surprisingly simple and requires only a few changes in `
>>>> $:/core/modules/filters.js` (see issue #4267). 
>>>> <https://github.com/Jermolene/TiddlyWiki5/issues/4267>
>>>>
>>>> Next step is to create the mod for the mod-loader plugin. As so often a 
>>>> link is missing in the description.   
>>>>
>>>>
>>>> Regards
>>>> Cd.K
>>>>
>>>

-- 
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/161a628a-f738-48ed-a4bc-045870019ff2%40googlegroups.com.

Reply via email to