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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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