Regular Expressions 101

Library entries

youtube

Vote

0

Regular Expression
pcre

/
^(?:https?:\/\/)?(?:(?:www\.)?youtube\.com\/(?:(?:v\/)|(?:embed\/|watch(?:\/|\?)){1,2}(?:.*v=)?|.*v=)?|(?:www\.)?youtu\.be\/)([A-Za-z0-9_\-]+)&?.*$
/
gmi

Description

Loading markdown...
Submitted by anonymous - 6 years ago