I need to clean all links in long string. Eg:
http://www.example.com
http://example.com
www.example.net
youtube.com/user/123456
facebook.com/example
sub.domain.com
I want remove all link and choosing this code but not working all links.
(?>http?://|ww\w\.).+?(?=\s)
How to fix this problem?
Thank you!