Regular Expressions 101

Library entries

youtube

Vote

0

Regular Expression
pcre

/
(?:(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/))([^&?%#\/\n]*)
/
gm

Description

Loading markdown...
Submitted by anonymous - 13 days ago