更新时间:2023-02-23 13:20:37
嗯,这是我结束了什么使用更严格的军事时间:
Well, here's what I ended up with; using stricter military time:
DATE_TIME_FORMAT = /^([0,1]?\d{1})\/([0-2]?\d{1}|[3][0,1]{1})\/([1]{1}[9]{1}[9]{1}\d{1}|[2-9]{1}\d{3})\s([0]?\d|1\d|2[0-3]):([0-5]\d):([0-5]\d)$/
匹配:1/19/2011 23:59:59
Matches: 1/19/2011 23:59:59
捕获: