I am cleaning some URL data from an eCom at the moment and since I want to get a better overview from which referrer traffic came.
I have tried the sub() function in R but I am running into difficulties in properly applying RegEx.
sub("*.com", "", q2$Session.First.Referrer)
I want to simply clean a URL looking like "http\://www\.gazelle\.com/main/home\.jhtml" the basic URL so "www.gazelle.com".