[rt-users] Help with validate code

Thomas Sibley trs at bestpractical.com
Tue May 10 17:55:04 EDT 2011


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



More information about the rt-users mailing list