I would like to strip the item name from a URL using Javascript. Not sure whether Regex is the way to go with this, as I need to capitalize the item name after it is extracted.
BEFORE
https://www.sportsdirect.com/karrimor-lifestyle-fleece-mens-443326?colcode=44332603
AFTER
"Karrimor Lifestyle Fleece Mens 443226"
So anything between the / after the URL and before the ? character and stripping out any - characters