Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

It checks for time in 24hr format with colon separator

Submitted by OMKAR AGRAWAL - 3 years ago