Regular Expressions 101

Community Patterns

Community Library Entry

3

Regular Expression
ECMAScript (JavaScript)

/
https:\/\/(youtu.be|www.youtube.com)\/([A-z0-9-_]{11}(\?.*)?$|(watch?.*v=[A-z0-9-_]{11}(\&.*)?$))
/
gm

Description

YouTubeVideoUrl

Submitted by EdwardKonovalov - 2 years ago (Last modified 2 years ago)