Regular Expressions 101

Library entries

Youtube Regex

Vote

0

Regular Expression
pcre2

/
^(?:https?:\/\/\w*\.?)?(youtube\.com\/|youtu\.be?\/)+(watch\?v=|shorts\/)?+(\w+)
/
gm

Description

Loading markdown...
Submitted by Suraj Shah - 3 months ago