Regular Expressions 101

Library entries

youtube id match

Vote

3

Regular Expression
pcre

/
^.*(youtu.be\/|v\/|u\/\w+\/|embed|e\/|watch\?v|\?v=|\&v=)([^#\&\?]{11,11}).*
/
gm

Description

Loading markdown...
Submitted by Wiliam Castilhos, Ramon Barros - 7 years ago