Reg :regular expression

HI,

how to validate a time in regular expression

eg: alert 9916789067 05:16 wake up

so i should validate time time can be

05:16
0516
05.16p
05.16p.m or pm
05.16a
05.16a.m or am
05:16a

if any one knows help me

2007/9/6, Shiva K. [email protected]:

HI,

how to validate a time in regular expression

eg: alert 9916789067 05:16 wake up

so i should validate time time can be

I didnt try it, you could try to use the validates_format_of
(ActiveRecord::Validations::ClassMethods)
method.