validation for Time HH:MM am or pm Format using regular expression
<p>I am working on web application using asp.net with vb code.</p>

<p>I have a textbox for time field for which i am using regular expression validator.</p>

<p>the format i want is HH:MM am. the regular expression i am using is "(0[1-9]|[1][0-2])[:]" + "(0[0-9]|[1-5][0-9])[ ][A|a|P|p][M|m]"</p>

<p>i am entering the time example: 08:30 AM or 08:30 PM but the regular expression is showing error message.</p>

<p>Can anyone help me with correct regular expression.</p>

<p>thankyou all in advance</p>

<p>shubha</p>
