Regular Expressions 101

Library entries

Date time AM/PM validation

Vote

1

Regular Expression
pcre

/
^(0?\d|[1][0-2])\/(0?[1-9]|[0-2]\d|[3][0-1])\/(\d{2})(?:(?:\s(0?[1-9]|1[012])\:([0-5]\d)(?:\s(AM|PM))?)?)$
/
gm

Description

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