Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-07-16 17:50
Flavor·ECMAScript (JavaScript)

/
(youtu\.be\/|youtube(-nocookie)?.com\/(v\/|e\/|.*u\/\w+\/|embed\/|.*v=))([\w-]{11})
/
g
Open regex in editor

Description

any format, check domain to make sure it's a youtube url

Submitted by Mantish