Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-08-05 06:45
Flavor·ECMAScript (JavaScript)

/
(?:https?:\/\/(?:www)?\.?y(?:2u\.be|outu\.be|outube.com)\/)(?:watch\?v=)?([\w\d]+)
/
gmi
Open regex in editor

Description

Detects YouTube link in the standard format and shortcuts and it receives the ID of the YT video.

Submitted by Velidan