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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find java.util.Date toString
Expression
^(?:\s*(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\s*)(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+?(0?[1-9]|[1-2][0-9]|3[01])\s+(2[0-3]|[0-1][0-9]):([0-5][0-9]):(60|[0-5][0-9])\s+((?:E|C|M|P)(?:ST|DT))\s+(19[0-9]{2}|[2-9][0-9]{3}|[0-9]{2})
Description
Validates the toString from a java.util.Date object. It is NOT formatted for java-source.
Matches
Wed Sep 21 04:33:26 EDT 2011 | Thu Aug 21 23:33:26 PDT 2011 | Thu Aug 21 23:33:26 PDT 2011
Non-Matches
Sun Aug 30 23:33:26 GMT 2033 | Sunday Aug 31 23:59:59 EST 2033 | Sun Feb 32 23:59:59 EST 2033
Author Rating: Not yet rated. Chuck Barnes
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