Regular Expressions 101

Community Patterns

Allow 24 hour time formats, optionally with seconds

0

Regular Expression
PCRE (PHP <7.3)

/
^(([0-1][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?)$
/
gm

Description

no description available

Submitted by anonymous - 5 years ago