Regular Expressions 101

Library entries

youtube id watch embed

Vote

1

Regular Expression
pcre

/
\/(watch\?v=|embed\/)([\d\w-_]+)
/
gm

Description

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