I want to remove everthing between .com/ to ?utm
How can I do that? I use Notepad++ and Kate.
https://www.forexample.com/cat.belt?utm2900&eav=AfbHJya2K7Mbg2mPWatN
https://www.forexample.com/cat.food?utm89748&eav=AfbHJya2K7Mbg2mPWatN
https://www.forexample.com/dog.necklace?utm25875&eav=AfbHJya2K7Mbg2mPWatN
https://www.forexample.com/dog.belt?utm25285&eav=AfbHJya2K7Mbg2mPWatN
https://www.forexample.com/dog.food?utm785844&eav=AfbHJya2K7Mbg2mPWatN
I tried to Google the solution, but nothing really works.
try the pattern:
(^.*?\.com\/)(?:.*?)(\?utm.*$)
substitution:
$1$2
demo here: https://regex101.com/r/xChAme/2