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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find date format
Expression
(?<Year>(?:\d{4}|\d{2}))-(?<Month>\d{1,2})-(?<Day>\d{1,2})
Description
match the date pattren start with year and seprated by (-).
Matches
2007-02-23
Non-Matches
2007/02/23
Author Rating: Not yet rated. Balram Watwani
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: clear as mud
Name: reg guy
Date: 3/8/2007 7:54:28 PM
Comment:
got it. how bout a nice little explanation, and more important, MUCH more important... a variation or 2?


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