On Saturday, August 24, 2019 at 6:36:54 AM UTC-7, @TiddlyTweeter wrote:
>
> Mark S. wrote:
>>
>> Here's a probably inefficient date VALIDATOR for dates starting 
>>> 0000-01-01 following format yyyy-mm-dd  (which I find to be the most 
>>> generally useful). Ok, I didn't check the rules. I think there's something 
>>> about a surprise
>>>
>> leap year every 400 years, so there's probably more tweaking to be done 
>> to match the Gregorian calendar precisely.
>>
>> <option 
>> value="^(?=\d{4})(((?!\d\d(00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96))\d{4}-(((0[13578]|10|12)-(0[1-9]|[12]\d|30|31))|((04|06|09|11)-(0[1-9]|[12]\d|30))|((02)-(0[1-9]|1\d|2[1-8]))))|((?=\d\d(00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96))\d{4}-(((0[13578]|10|12)-(0[1-9]|[12]\d|30|31))|((04|06|09|11)-(0[1-9]|[12]\d|30))|((02)-(0[1-9]|1\d|2[1-9])))))">Experimental
>>  
>> VALIDATE yyyy-mm-dd</option>
>>
>>  
> Lol! Nice one! I'd put that in the REALLY ADVANCED category for regex!
> Most users would have no clue how that works!
> Anyway I think you got it off the net? It's not bad, but faulty :-).
>
>
Actually, I rolled it myself. 

-- 
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/d45ba6ea-c980-40f2-99b9-a49877e63d32%40googlegroups.com.

Reply via email to