Is it possible to search for and remove URLs from a string in PHP. Talking about the actual text here not the HTML. Example to remove:
mywebsite.com
http://mywebsite.org
www.mywebsite.co.uk
www.my-web-site.net
sub.mywebsite.edu
etc
My issue is users submitting a description field and using it promote their own URLs. I'm not sure if its possible without generating too many false positives. I've thought about detecting the http:// or www. but that doesn't stop links like mywebsite.com