I need to make strict validation of input for a school project, time in format HH:MM am/pm. So far i\'ve got this RegEx expression:
(([01]?[0-9]):([0-5][0-9
([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])\s*([AaPp][Mm])
For the following:
10:00AM
10:00PM
10:00am
10:00pm
10:00 pm
10:00 am
10:30PM
23:46am