I'm hoping someone can help as I'm new to regex.
I have a bunch of URLs and it basically follows the format of:
/employer/company-name/various-pages
What I need to do, is redirect all the various-pages as they no longer exist. So the URL becomes:
/employer/company-name/
The regex I have is as follows:
\/employer\/(.+?)\/[a-z0-9\-]+\/ \/employer\/(.+?)\/
The issue I have, I need to make company-name a variable but do an exact match
Any help is very much appreciated!!!