In Excel, I need to pull part numbers from the URLs in a site map. The URLs look something like this:
http://www.mysite.com/shop/catalog/...egory3/category4/item/partnumber1/part-title1
http://www.mysite.com/shop/catalog/category1/category2/category3/item/partnumber2/part-title2
http://www.mysite.com/shop/catalog/category1/category2/item/partnumber3/part-title3
http://www.mysite.com/shop/catalog/...egory3/category4/item/partnumber4/part-title4
I need to grab the string between the "item/" and the next "/" so that the results look like this:
partnumber1
partnumber2
partnumber3
partnumber4
There can be any number of "/" before the string and any number after. The key thing is that the string to parse comes immediately after "item/" and ends before the very next "/"
I've found a number of solutions on this site that address similar situations but none seem to work for this pattern. I'm not a programmer, so I'm not sure how to approach this. The closest I've come is a solution that will start at the correct spot but then includes everything to the end of the URL.
Any help is appreciated.
http://www.mysite.com/shop/catalog/...egory3/category4/item/partnumber1/part-title1
http://www.mysite.com/shop/catalog/category1/category2/category3/item/partnumber2/part-title2
http://www.mysite.com/shop/catalog/category1/category2/item/partnumber3/part-title3
http://www.mysite.com/shop/catalog/...egory3/category4/item/partnumber4/part-title4
I need to grab the string between the "item/" and the next "/" so that the results look like this:
partnumber1
partnumber2
partnumber3
partnumber4
There can be any number of "/" before the string and any number after. The key thing is that the string to parse comes immediately after "item/" and ends before the very next "/"
I've found a number of solutions on this site that address similar situations but none seem to work for this pattern. I'm not a programmer, so I'm not sure how to approach this. The closest I've come is a solution that will start at the correct spot but then includes everything to the end of the URL.
Any help is appreciated.