Regular Expressions 101

Community Patterns

Match time HH:MM:SS or MM:SS similar to YT chapters

0

Regular Expression
ECMAScript (JavaScript)

/
(^(?:[01]\d|2[0-3]|[0-59]):[0-5]\d:[0-5]\d)|(^(?:[0-5]\d|2[123]|[0-59]):[0-5]\d)
/
gm

Description

Loading markdown...
Submitted by JVE - 6 months ago
(Last modified 6 months ago)