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 2
Title Test Details 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
Title Test Details Sassy Time Match
Expression
([0-9]{1,2}[:][0-9]{1,2}[:]{0,2}[0-9]{0,2}[\s]{0,}[AMPamp]{0,2})
Description
Made for a very specific purpose. It's likely pretty slow. Use at your own risk and don't complain.
Matches
12:00 PM | 14:00 AM | 12:13:14 | 14:00 AM
Non-Matches
Anything
Author Rating: Not yet rated. Andrew Nelder
   Displaying page 1 of 1 pages; Items 1 to 2

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