1$subject = "E:contact@customer.com I:100955";
2$pattern = "/^E:(?<contact>\w+) I:(?<id>\d+)$/";
3if (preg_match($pattern, $subject,$matches)) {
4 print_r($matches);
5}
6
1((1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]))
2
312:00 pm --------- OK
413:00
51:00 am --------- OK
65:5 am
75:05 PM --------- OK
855:55
909:59 // valid time, but meridiem is missing
10:01
110:59
1200:59 PM