I would like to remove multiple web URLs from a string. If the string is the following:
this is a URL http://test.com and another one http://test.com/hi and this one http://www.test.com/
It should return
this is a URL and another one and this one
I tried using the following code:
gsub(" ?(f|ht)(tp)(s?)(://)(.*)[.|/](.*)", "", string)
But it returns me this:
this is a URL