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_&#038;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?
Based on your example, this looks like it would work:
\w+://\S+\.\w+\/\S+\/
how to regex this link?