Regular Expressions 101

Library entries

Facebook Video ID from link

Vote

1

Regular Expression
pcre

/
facebook\.com\/(?:photo.php\?v=|video\/embed\?video_id=|v\/?)(\d+)
/
gi

Description

Loading markdown...
Submitted by Eirenaios - 8 years ago