Regex for time in hh:mm am/pm format

You can use:

\b((1[0-2]|0?[1-9]):([0-5][0-9]) ([AaPp][Mm]))
EDIT:         ^ changed this from "0" to "1" to not accept 00:00

Leave a Comment