Regular Expressions 101

Library entries

Youtube Formatted Duration

Vote

0

Regular Expression
javascript

/
^(?:([0-9]{1,3}):(?=[0-9]{2}))?(60|[0-5]?[0-9]):(60|[0-5][0-9])$
/
gm

Description

Loading markdown...
Submitted by anonymous - 9 months ago