Regular Expressions 101

Library entries

Facebook profile url

Vote

-1

Regular Expression
pcre

/
(?:https?:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*?(?:profile.php\?id=(?=\d.*))?([\w\-]*)?(?:[\w\-\.]*)?
/
g

Description

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