Regular Expressions 101

Library entries

HTML5 time entry regex

Vote

0

Regular Expression
javascript

/
(?:^$)|(?:^([0-9]|0[1-9]|1[0-9]|2[0-4])(:|\.)[0-5][0-9]$)|(?:^([1-9]|0[1-9]|1[0-2])(:|\.)[0-5][0-9] (A|a|P|p)(M|m)$)
/

Description

Loading markdown...
Submitted by Scott Mebberson - 7 years ago