jbonnett Posted July 5, 2012 Share Posted July 5, 2012 I'm looking for some code that finds a link from a string like Facebook does like if I put "WOW check out this website http://www.website.com/ it's brilliant!" and only extracts http://www.website.com/. Quote Link to comment https://forums.phpfreaks.com/topic/265223-finding-link-from-a-_post/ Share on other sites More sharing options...
requinix Posted July 5, 2012 Share Posted July 5, 2012 Google is always a good place to start looking. Look for articles and tutorials and stuff too. And you probably don't want to focus on the whole "like Facebook does" thing: it has nothing to do with that. Quote Link to comment https://forums.phpfreaks.com/topic/265223-finding-link-from-a-_post/#findComment-1359257 Share on other sites More sharing options...
scootstah Posted July 5, 2012 Share Posted July 5, 2012 Make sure you take a look at this article: http://www.codinghorror.com/blog/2008/10/the-problem-with-urls.html Quote Link to comment https://forums.phpfreaks.com/topic/265223-finding-link-from-a-_post/#findComment-1359313 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.