Regular Expressions 101

Library entries

extract facebook video id

Vote

1

Regular Expression
pcre

/
(https?:\/\/)?(www.)?(facebook\.com)\/(\S*\/)*(videos?\/(embed\?video_id=|vb.\d+\/)?)(\d+)
/
gim

Description

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