I have a list of links below, what i need is regex to get the word super-hydration-duo-kit and face-palette and deluxe-tan-remover
https://www.beautybay.com/p/coco-and-eve/super-hydration-duo-kit/
https://www.beautybay.com/p/beauty-bay/face-palette/first-light/
https://www.beautybay.com/p/loving-tan/deluxe-tan-remover/200/
I have tried this regex but not getting the desired result
.*(?<=p/)([\w-]+)
The output i am getting is coco-and-eve which is not what i want.
I don't need the word that is immediately after p/, i need the next word after that word i.e deluxe-tan-remover in the 3rd link