Regular Expressions 101

Library entries

Time -12 hours format with AM and PM

Vote

1

Regular Expression
javascript

/
^((0?[1-9]{1})|(1{1}[0-2]{1}))((:[0-5][0-9])?)(A|P|AM|PM)$
/
i

Description

Loading markdown...
Submitted by anonymous - 6 years ago