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
https://*.youtube.com (www or non www)
Open Workspace
PCRE2 (PHP)
Match
Created 2023-04-14 04:56
0
Regular Expression
/
^
https:
\/\/
(?:
www
\.
)?
youtube
\.
com
\b
/
mg
Description
Regex to check
https://www.youtube.com
or
https://youtube.com
Submitted by
davidgaroro