Given the following Facebook profile and page URLs, my intent is to extract profile ids or usernames into the first match position.
http://www.facebook.com/profile.php?id=123456789 http://www.facebook.com/someusername www.facebook.com/pages/Regular-Expressions/207279373093
The regex I have so far looks like this:
Which produces the following results:
The ideal outcome would look like:
That is to say, I'd like to have the profile identifier to always be returned in the first position.
It would also be ideal of www.facebook.com/ and facebook.com/ didn't match either.