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

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