Regular Expressions 101

Library entries

Facebook Page/Profile. No profile.php. No /groups/

Vote

0

Regular Expression
pcre

/
(?:https?:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*?(\/)?([\w\-\.]{5,})
/
ig

Description

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