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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|10|12)([/])(\d{4}))|(([0][1-9]|[12][0-9]|30)([/])(0[469]|11)([/])(\d{4}))|((0[1-9]|1[0-9]|2[0-8])([/])(02)([/])(\d{4}))|((29)(\.|-|\/)(02)([/])([02468][048]00))|((29)([/])(02)([/])([13579][26]00))|((29)([/])(02)([/])([0-9][0-9][0][48]))|((29)([/])(02)([/])([0-9][0-9][2468][048]))|((29)([/])(02)([/])([0-9][0-9][13579][26])))
Description
Date in DD/MM/YYYY format. Fecha en formato DD/MM/AAAA.
Matches
28/12/2003 | 28/02/2003 | 29/02/2000
Non-Matches
28-02-2003 | 30/02/2003 | 28.02.2003
Author Rating: The rating for this expression. Mathews Inga
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: Perfeita
Name: Dieygo
Date: 10/5/2005 3:26:42 PM
Comment:
Até onde eu testei esta Expressão está perfeita. Excelente. Valeu!


Title: About expression
Name: Aleš
Date: 5/24/2005 6:39:39 AM
Comment:
Not flexible enought


Title: Forgot Second Part
Name: Cdak
Date: 5/5/2005 3:12:52 AM
Comment:
And if I copy/paste the string into a regular expression validator instead of a custom validator, I get the error message that (((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|10|12)([/])(\d{4})) is not a valid regular expression. that happens for all these expressions


Title: Question
Name: Cdak
Date: 5/5/2005 3:08:17 AM
Comment:
This is a dumb question but I'm working on a school project and none of these strings seem to work for me. I just slide a customvalidator onto the screen, set the ControlToValidate to the textbox I want and copy/paste the string into the ClientValidationFunction, right? Anything not in exact format will cause me to get a SQL error. Any help would be greatly appreciated.


Title: Doesn't work
Name: FranZer
Date: 4/29/2005 7:35:23 PM
Comment:
It matches: 01/01/0000 01/01/0023 01/01/0123 01/01/1234 which are not a valid dates. :( Maybe you can fix it!


Title: Not good for Javascript
Name: Roberto
Date: 3/6/2005 6:27:06 AM
Comment:
This pattern works in Jscript (IE only) but it doesn't in Javascript (Firefox and other browsers).


Title: Doesn't work
Name: Rik Hemsley
Date: 2/15/2005 4:30:13 PM
Comment:
It matches 29/02/2003, which is not a valid date.


Title: Aclaración
Name: Mathews Inga
Date: 1/21/2005 12:21:28 AM
Comment:
La idea de esta validación es combinarlo con un popup de tipo calendario. Por eso la expresión es siempre dd/mm/aaaa


Title: hgf
Name: fghf
Date: 1/20/2005 9:30:01 AM
Comment:
12.12.04


Title: A mi no me funciona
Name: Bea
Date: 12/28/2004 5:43:59 AM
Comment:
Pongo las fechas validas y no me funciona :'(


Title: Una en español, muy bien
Name: D. G.
Date: 4/29/2004 10:32:02 AM
Comment:
Muy buena, funciona


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