Regular Expressions 101

Community Patterns

get video ID from youtube url

0

Regular Expression
PCRE (PHP <7.3)

/
(youtube|you_other_url_format).*?(?:[\/]|v=)([a-zA-Z0-9-_]{11})
/
gmi

Description

no description available

Submitted by anonymous - 5 years ago