I need some PHP help with strings.
I have a textbox field where users will enter a facebook profile link.
Example: http://facebook.com/zuck
Now the problem is I need to have EXACTLY this string: "http://graph.facebook.com/zuck".
Inputs could be anything like:
http://facebook.com/zuck
http://www.facebook.com/zuck
www.facebook.com/zuck
facebook.com/zuck
What's the best way to do that? Thank you in advance.

facebook.com/usernamewould be the best choice given the inputs you have listed.blahblahfacebook.com/asdf/1234would match "asdf" But I assume you're trying to be aggressive in your matching.