Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

Validates 24 hour formmatted hours and minutes

Submitted by anonymous - 8 years ago