How can I cut urls from the list



  • 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"
    


  • @kerafb said in How can I cut urls from the list:

    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

    sample url 2

    If I understand you correctly, use this regular expression:

    "(.*?)\?
    

    https://regex101.com/r/UmrZNe/1

    4034ab27-9935-4420-95ae-35e51253562c-изображение.png



  • thank you brother,


Log in to reply