How could you match 12 hour time in a regex-- in other words match 12:30 but not 14:74? Thanks!
You could use this one:
/((?:1[0-2])|(?:0?[0-9])):([0-5][0-9]) ?([ap]m)/ /1 => hour /2 => minute /3 => am/pm