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 Format: MM-DD-YYYY or MM/DD/YYYY
Expression
/^\d{2}[\-\/]\d{2}[\-\/]\d{4}$/
Description
This will match date values with the format mm-dd-yyyy or mm/dd/yyyy
Matches
12/12/2012, 12-12-2012
Non-Matches
12.12.2012, 12 12 2012
Author Rating: Not yet rated. Jason Shimkoski
   Displaying page 1 of 1 pages; Items 1 to 1

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