Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
https?:\/\/(youtu\.be|(www\.|m\.|music\.)?youtube(-nocookie)?\.com)(\/(.*)(([?&]v=)([a-zA-Z0-9_-]{11}))|((\/attribution|\/oembed).*(v%3D)([a-zA-Z0-9_-]{11}))|((\/shorts\/)([a-zA-Z0-9_-]{11}))|((\/embed\/)([a-zA-Z0-9_-]{11}))|((\/v\/)([a-zA-Z0-9_-]{11}))|((\/user)(\/.+1\/)([a-zA-Z0-9_-]{11}))|((\/e\/)([a-zA-Z0-9_-]{11}))|((\/live\/)([a-zA-Z0-9_-]{11}))|((\/watch\/)([a-zA-Z0-9_-]{11}))|((\/)([a-zA-Z0-9_-]{11})))
/
gi
Unit Tests
There are no unit tests.
Add unit test