Regular Expressions 101

Community Patterns

Match Time HH:MM:SS

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 - 2 years ago