[rt-users] Help with validate code

Kenneth Crocker kfcrocker at lbl.gov
Tue May 10 18:02:04 EDT 2011


Thomas,

Geez! Thanks.

Kenn
LBNL

On Tue, May 10, 2011 at 2:55 PM, Thomas Sibley <trs at bestpractical.com>wrote:

> On 05/10/2011 05:47 PM, Kenneth Crocker wrote:
> > Shawn & Emmanuel,
> >
> > I got it. Thanks:
> >
> > (?#Date mm/dd/yyyy
> >
> hh:mm-military)^((0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/([1-2][0-9][0-9][0-9])
> > (0[1-9]|1[0-9]|2[0-4]):([0-5][0-9]))?$
>
> To nitpick: 00 is a valid hour, 24 is not.
>
> Thomas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110510/552b56b9/attachment.htm>


More information about the rt-users mailing list