Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-04-06 08:37
Flavor·ECMAScript (JavaScript)

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

Description

It checks for time in 24hr format with colon separator

Submitted by OMKAR AGRAWAL