RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
((^(10|12|0?[13578])(3[01]|[12][0-9]|0?[1-9])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(11|0?[469])(30|[12][0-9]|0?[1-9])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)(2[0-8]|1[0-9]|0?[1-9])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)(29)([2468][048]00)$)|(^(0?2)(29)([3579][26]00)$)|(^(0?2)(29)([1][89][0][48])$)|(^(0?2)(29)([2-9][0-9][0][48])$)|(^(0?2)(29)([1][89][2468][048])$)|(^(0?2)(29)([2-9][0-9][2468][048])$)|(^(0?2)(29)([1][89][13579][26])$)|(^(0?2)(29)([2-9][0-9][13579][26])$))
Description
Matches on MMDDYYYY only, requires all 8 digits
Matches
01012003 | 02292000
Non-Matches
01/01/2003
Author Rating: The rating for this expression. mike harber
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Custom RE for Variation in Length
Name: Rajan Kapadia
Date: 7/25/2005 12:42:43 AM
Comment:
I want modify this RE for Combination of various string... ie : for MDY, MDDYYYY,MDYYYY....etc..How can I do it? can u help me to make this ? Can I go length-wise diffrent RE ? means: for stringLength(8) = your given RE for stringLength(7) = modified this RE to recognize only 7 digit string . similarly do the modification upto 3 digit string .. which validate and identify Data formats in MMDDYYYY format ...... can u Guide me How I can do it?


Title: dallas
Name: se
Date: 3/18/2005 10:06:55 AM
Comment:
Can you force 8 digits only? 222005 will pass your expression.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials