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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Sassy Date Match
Expression
([A-Za-z]{0,}[\.\,\s]{0,}[A-Za-z]{1,}[\.\s]{1,}[0-9]{1,2}[\,\s]{0,}[0-9]{4})| ([0-9]{0,4}[-,\s]{0,}[A-Za-z]{3,9}[-,\s]{0,}[0-9]{1,2}[-,\s]{0,}[A-Za-z]{0,8})| ([0-9]{1,4}[\/\.\-][0-9]{1,4}[\/\.\-][0-9]{1,4})
Description
Will match a variety of different date formats; however, it is not a good example of "simple" regex and can really contribute to processing time. This was made for a very specific purpose and should only be used when no other faster methods are available.
Matches
11/16/2003 | 11-16-2003 | 11.16.2003 | 11.16.03 | 2003-11-16 | Sunday, November 16, 2003 | November 16, 2003 | Nov. 16, 2003 | 2003 November 16 | 2003Nov16 | 2003-Nov-16 | 2003-Nov-16, Sunday
Non-Matches
Anything
Author Rating: Not yet rated. Andrew Nelder
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