I have regex to validate time HH:MM tt so I need to make sure I get
from 00:01 am to 11:59 pm
The problem is that this one I have does not take 01:01 am for example or 02:00 pm
so the leading zero makes it invalid time which is not true.
^ *(1[0-2]|[1-9]):[0-5][0-9] *(a|p|A|P)(m|M) *$