Is there a way to delete everything between "site/" and "6447382.p?skuId=6447382", for example "apple-airpods-pro-2nd-generation-with-magsafe-case-usbc-white/"
...and delete everything after ".p", for example "?skuId=6447382"
...and then replace the clipboard with a plain (not styled) and shortened URL like this:
Thanks as always Rob. I'm not sure what's wrong, I've been unable to create this macro, and my Home Depot macro stopped working. Dr. Drang also made me a shorten Amazon URL macro that has stopped working as well.
Should I post my setup and steps to reproduce in a new thread?
I wondered why you used [-1] instead of [2], but it seems like it's a quick way to identify the last delimited value in an array without having to know how many values there are. Is that why?
Short Answer: Sure. It was easy to extract what the OP didn't need without using Regex (in this case).
Long Answer: It's a copy cat league and I am a student of @ComplexPoint. He taught me how to use arrays and I wanted him to be semi-proud of me for knowing the basics. Plus, @griffman had the OP covered with the regex version.