Displaying page
of
 pages;
Items  to 
	
    
            
                
                    | Title | Test
                        Details
                        
                            Date validation with leap year 2010 to 2099 | 
                
                    | Expression | ^((((((0?[1-9])|([1-2][0-9])|(3[0-1]))-(([jJ][aA][nN])|([mM][aA][rR])|([mM][aA][yY])|([jJ][uU][lL])|([aA][uU][gG])|([oO][cC][tT])|([dD][eE][cC])))|(((0?[1-9])|([1-2][0-9])|(30))-(([aA][pP][rR])|([jJ][uU][nN])|([sS][eE][pP])|([nN][oO][vV])))|(((0?[1-9])|(1[0-9])|(2[0-8]))-([fF][eE][bB])))-(20(([13579][01345789])|([2468][1235679]))))|(((((0?[1-9])|([1-2][0-9])|(3[0-1]))-(([jJ][aA][nN])|([mM][aA][rR])|([mM][aA][yY])|([jJ][uU][lL])|([aA][uU][gG])|([oO][cC][tT])|([dD][eE][cC])))|(((0?[1-9])|([1-2][0-9])|(30))-(([aA][pP][rR])|([jJ][uU][nN])|([sS][eE][pP])|([nN][oO][vV])))|(((0?[1-9])|(1[0-9])|(2[0-9]))-([fF][eE][bB])))-(20(([13579][26])|([2468][048])))))$ | 
                
                    | Description | This expression can validate dates in the range of years 2010-2099 with accounting for leap year. Format of date dd-mmm-yyyy. 
With a bit of tweaking, the year range can be expanded. Didn't do it myself as requirement was to validate future dates. | 
                
                    | Matches | 29-fEb-2012, 1-JaN-2013, 31-Dec-2099 | 
                
                    | Non-Matches | 29-feb-2013, 35-nov-2078, 25-dec-2100 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Moiz Tankiwala | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Current Date For Form Field - mm/dd/yy | 
                
                    | Expression | ^(0[7-9]|1[012])[/](0[1-9]|[12][0-9]|3[01])[/](19)$ | 
                
                    | Description | I needed an expression that would capture the current date and at least future dates. Since I needed users to be honest and to pick the present, I adjusted the expression to only read for the following months of the year and the year 2019 specifically. It's not foolproof or particularly sophisticated, but it is easy to read and edit. The input follows: mm/dd/yy. | 
                
                    | Matches | 07/01/19 | 09/21/19 | 08/31/19 | 
                
                    | Non-Matches | 02/01/19 | 13/52/65 | 06/30/19 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Joanne | 
            
        
	
	
   Displaying page
of
 pages;
Items  to