Regular Expressions 101

Library entries

video id

Vote

1

Regular Expression
pcre

/
(youtu(be\.com\/(watch\?v=(([a-zA-Z0-9]{0,11})|(&.*))|v\/(([a-zA-Z0-9]{0,11})(\?.*))|embed\/(([a-zA-Z0-9]{0,11})(\?.*)))|\.be\/(([a-zA-Z0-9]{0,11})(\?*))))|(vine\.co\/v\/(.*))|(vimeo\.com\/(m\/#\/(.*)|(groups\/.*\/videos\/(.*))|(.*)))
/
g

Description

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