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 regex
Expression
^((19[0-9][0-9])|(20[0-1][0-5]))\-((0?[1-9])|(1[0-2]))\-((0?[1-9])|([1-2][0-9])|(3[0-1]))$
Description
Year, month and day with dashes.Year starts from 1900 to 2015 and must be 4 digits.
Matches
2012-05-21 | 1960-12-14 | 1910-5-3
Non-Matches
2011/5/21 | 60-12-14 | 2021-5-3
Author Rating: The rating for this expression. Soroush gholamzadeh
   Displaying page 1 of 1 pages; Items 1 to 1

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