I have a lot of url, for example, in the url that I gave, I want to delete after .html, the parts after .html are not fixed in all urls. So how can I get only url.
Thank you in advance for your help
sample url 1
href="https://es.banggood.com/Bakeey-Flip-PU-Leather-Full-Body-Protective-Case-For-Xiaomi-Mi-A2-or-Xiaomi-Mi-6X-Non-original-p-1371644.html?cur_warehouse=CN&ID=3229&rmmds=category"
sample url 2
href="https://es.banggood.com/Bakeey-Ultra-thin-Matte-Soft-TPU-Protective-Case-For-Xiaomi-Redmi-Note-8-Pro-Non-original-p-1630420.html?cur_warehouse=CN&ID=224&rmmds=category"