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
/
facebook\.com\/(?:photo.php\?v=|video\/embed\?video_id=|v\/?)(\d+)
/
gi
Input 1
1
New
https://www.facebook.com/photo.php?v=0123456789&set=t.674367&type=3&theater http://www.facebook.com/video/embed?video_id=0123456789 http://www.facebook.com/v/0123456789
Extraction
https://www.facebook.com/photo.php?v=0123456789&set=t.674367&type=3&theater http://www.facebook.com/video/embed?video_id=0123456789 http://www.facebook.com/v/0123456789