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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Date Pattern of the form: DD-MM-YYYY
Expression
^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|11|12|10)-(19[0-9]{2})$
Description
This is regular expression that check for a particular date match in the following format respectively: DD-MM-YYYY and is only valid for the years between 1900 - 1999 Hint: good for validating age above 9-years old
Matches
31-01-1923 | 12-05-1987 | 26-10-1901
Non-Matches
07/10/1998 | 04-07-98 | 1-3-1806 | 1985-01-07
Author Rating: Not yet rated. olakunle bolarinwa
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

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