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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Any date with char months
Expression
((MON|TUE|WED|THU|FRI|SAT|SUN)[A-Z]*)*[\ ,-]*(\d|\d{2})*(st|nd|rd|th)*[\ ,-]*(JAN|FEB|MAR|MAY|APR|JUL|JUN|AUG|OCT|SEP|NOV|DEC)[A-Z]*[\ ,]*(\d|\d{2}|\d{4})*(st|nd|rd|th)*([\ ,])*'*(\d{2}|\d{4})*\b
Description
Match any date with non digit, text months. Includes day of week prefix. Very permissive. http://regexr.com/3gtaf
Matches
Wednesday March 25, 2015 | 14 MAR 2017 | 4 MAR, 2017 | March 4, 2017 | Tue March 4, 2017 | Saturday March 4, 2017 | Sun March 24, 2017 | March 3rd | 1st March | May | Oct | Jun 3rd, '17 | Tue 4th Nov '17
Non-Matches
5-23-18 03/25/2015 2015-03-25 2015/03/25 2015.03.25
Author Rating: Not yet rated. Stoic Being
Source Me http://regexr.com/3gtaf
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