I want to regex a list of URLs.
The links format looks like this:
https://sales-office.ae/axcapital/damaclagoons/?cm_id=14981686043_130222322842_553881409427_kwd-1434230410787_m__g_&gclid=Cj0KCQiAxc6PBhCEARIsAH8Hff2k3IHDPpViVTzUfxx4NRD-fSsfWkCDT-ywLPY2C6OrdTP36x431QsaAt2dEALw_wcB
The part I need:
https://sales-office.ae/axcapital/damaclagoons/
I used to use this:
re.findall('://([\w\-\.]+)', URL)
However, it gets me this:
sales-office.ae
Can you help, please?