Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Tag
Open Workspace
PCRE (Legacy)
Match
Created 2025-07-04 07:14
1
Regular Expression
/
(?:
https
?
:
)?(?:
\/\/
)?(?:
[
0
-
9A
-
Z-
]
+
\.
)?(?:
youtu
\.
be
\/
|
youtube
(?:
-nocookie
)?
\.
com
\S
*?
[^
\w\s
-
]
)(
[
\w
-
]
{11}
)(?=
[^
\w
-
]
|
$
)(?!
[
?=&+%
\w
.-
]
*
(?:
[
'"
]
[^
<>
]
*
>
|
<
\/
a>
)
)
[
?=&+%
\w
.-
]
*
/
gim
Description
Submitted by
Anonymous