KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Helllo, I have some user-generated content on the website. I want to remove links out of it using php functions. For example I have the following string: "text1 http://link1 text2 www.link2 text3 link3.com text4" Is there a simple way to detect words, containing http:, www., .com and to remove them from text? Or is there any other good way of cleaning the text from links? Thank you for your time!
Tags (comma-separated)
Save Edits
Cancel