I need a regular expression which satisfy the condition 01:00 am
satisfy --> 01:00 pm,12:30 pm, 09:05 am
dont satisfy --> 1:00 am, 2:5 pm ,02:5 pm
the condition must follow 12 hr format., if any values like 13:00 pm ,20:30 pm never satisfy....
Please help me...
Thanks in Advance....
Regular Expression
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 22, 2009, 10:42 PM EDT
Sibin AA19 reputationPosted Sep 22, 2009, 10:49 PM EDT
Sibin AA19 reputationPosted Sep 22, 2009, 10:54 PM EDT
This expression has a problem ..... that is .,The time format like 1:15 pm is accepted by this condition, which never accept. only 01:15 pm accept
accept ---- 01:20 pm
never accept ---- 1:20 pm
this is the problem.. Please help me to remove this problem
Thanks in advance..
Roei BarRank #1,271 · 1.4K reputationPosted Sep 23, 2009, 2:54 AM EDT
01:15pm - not accepted
1:15pm - accepted
do you want both accepted?