Hi TT,
 By modified, I mean the date value stored in the modified field of tiddler 
which is created automatically by TW.
Thanks for provided alternative solutions and extra examples.

Cheers
Mohammad


On Wednesday, August 28, 2019 at 10:28:05 AM UTC+4:30, @TiddlyTweeter wrote:
>
> *Target fields*: created modified
>>
>> write regexp patterns to match
>>
>>    1. created/modified  in August 2019
>>    2. created/modified on Wednesdays
>>    3. created/modified on 3rd day of each month
>>    4. created/modified on 1st of December of each year
>>    5. created/modified on January of each year
>>
>> You mean, match against the number in "modified"?
>
> *No 2* I can't see a way in regex to do that from date numbers. 
>
> Modified / Created fields contain a number, meaning
> YYYYMMDDhhmmssmil
> 20190827150116448
>
>
> *August 2019*
> ^201908
> *"^"* = match from start of field
>
> *3rd day of any month, any year*
> ^......03
> *"."* = match any in-line character
>
> *1st of December of any year*
> ^....1201 
>   or 
> ^\d{4}1201
> *"\d"* = shorthand for *[0-9]*
> *"{4}"* = repeat preceding pattern exactly 4 times
>
> *January of any year*
> ^....01 
>   or
> ^\d{4}01
>
> *The 2nd & 7th of March & April 2017*
> ^20170[34]0[27] 
>   or
> ^20170(3|4)0(2|7) 
> *"[..]" *= Character Class
> *"(..)" *= Capturing Group;* "|" *= alternation 
>
> ---
>
> Q: Anyone want to try 4-9pm on all days from the 1st of August to the 
> 25th? :-)
>
> TT
>

-- 
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/506f6f7c-3d13-48ab-882b-d0e9981535fb%40googlegroups.com.

Reply via email to