Tiddly Tweeter 

*Works!*

In my TiddlyWiki I compared the number of matches from your solution with 
the result of the list filter method
<$set name="date_between" value="201909(0[1-9]|1[0-5])">
<<list-links "[regexp:created<date_between>]">>
</$set>
and both techniques return the same number of hits.


Thanks a lot
Cd.K


On Friday, September 20, 2019 at 10:21:04 AM UTC+2, @TiddlyTweeter wrote:
>
> Cd.K & Mohammad
>
> [regexp:created[(^2019090|^2019091(0|1|2|3|4|5))]] 
>
>
> Should work in Advanced Search, Filter without the need for a variable to 
> hold the pattern.
>
> ^2019090 = 1st to 9th September 2019
> ^2019091(0|1|2|3|4|5) = 10 to 15th September 2019
>
>  (I have tested it a little. IF you have issues let me know & I'll revise 
> it).
>
> Advanced search cannot handle regexp when special characters are used
>
>
> I think its ONLY the character class *"[...]"* that is a problem in the 
> regexp filter. 
>
> I'll comment more in the other thread later.
>
> TT
>
>
> On Friday, 20 September 2019 08:37:18 UTC+2, Mohammad wrote:
>>
>> See the solution here:
>>
>> https://groups.google.com/d/msg/tiddlywiki/2BmQGW1yv2M/BezFntw6BwAJ
>>
>>
>> Advanced search cannot handle regexp when special characters are used
>>
>> --Mohammad
>>
>> On Friday, September 20, 2019 at 2:49:56 AM UTC+4:30, Cd.K wrote:
>>>
>>> coda coder
>>>
>>> I think we're talking at cross purposes.
>>>
>>> I want this regexpr:created as a condition in Tools / Advanced Search / 
>>> Filter. 
>>>
>>> [image: 20-09-_2019_00-14-09.png]
>>>
>>> Exactly at this point I would like to extend the Advanced Search Filter 
>>> by the restriction from day 01 inclusive to day 15 exclusive.
>>>
>>>
>>>
>>> On Friday, September 20, 2019 at 12:04:52 AM UTC+2, coda coder wrote:
>>>>
>>>> Sorry, I should have mentioned, it needs to be a macro. 
>>>> https://tiddlywiki.com/#Macros%20in%20WikiText
>>>>
>>>> At the top of your tiddler:
>>>>
>>>> \define my-macro() 
>>>>
>>>> <$set name=pattern value="201909(0[1-9]|1[0-4])">
>>>> <$list filter="[regexp:created<pattern>]">
>>>>
>>>> </$list>
>>>> </$set>
>>>> \end
>>>>
>>>>
>>>>
>>>> Then, somewhere lower down (below all other macros if you have more 
>>>> than one) ...
>>>>
>>>> <<my-macro>>
>>>>
>>>> You can rename my-macro to anything that suits you: date-thing, if you 
>>>> want.
>>>>
>>>>
>>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f00eb3af-4550-45b6-8873-01f394a71949%40googlegroups.com.

Reply via email to