I'm trying to remove text in URLs so that a URL like https://www.nike.com/w/nike-free-5-shoes-3apemzy7ok would becomes /w/nike-free-5-shoes-3apemzy7ok
or https://www.kohls.com/search/mens.jsp becomes /search/mens.jsp
I can't use a RIGHT function, as there are multiple different domains, so the amount of characters it has to move changes from a case to case basis.
Does anyone know how to write a SQL query that can support this effort?
What I was thinking was something that looks for the ".com" and uses a wild card to remove ".com" + everything before the ".com"
That said, I haven't been able to figure out how to do this after a fair amount of research.
Appreciate the help!