Regular Expressions 101

Library entries

Match time in mm:ss, or hh:mm:ss if `hh > 00`

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Liddack - 3 years ago