Regular Expressions 101

Library entries

facebook regex video

Vote

1

Regular Expression
pcre

~
^http(?:s)?://(?:www.)?facebook.com/(?:video.php\?v=|video/video.php\?v=|photo.php\?v=|v/|.*?/videos/)([\d]+?)(&\S+?)?$
~
gm

Description

Loading markdown...
Submitted by bomale - 6 years ago