Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
duration\" content=\"PT(?<minutes>\d+)M(?<seconds>\d+)S
/
gm

Description

as found in: https://youtube.com/watch?v=${videoID}&persist_app=1&app=m to search for video time in minutes & seconds

Submitted by tomByrer - 3 years ago (Last modified 3 years ago)