I am trying to get a URL out of a long string and I am unsure how write the regex;
$ string = '192.00.00.00 - WWW.WEBSITE.COM GET /random/url/link'
I am trying to use the 're.search' function in order to pull out the WWW.WEBSITE.COM only without spaces. I would like it look like this;
$ get_site = re.search(regex).group()
$ print get_site
$ WWW.WEBSITE.COM
WWW\.(.*)\.COM. I am no expert in regex that's why I am commenting. Probably someone else can provide a better non-greedy one ?