I have a redirect plugin for my wordpress blog that allows rules based on matching regular expressions, which i do not understand at all.
I need a pattern that matches something like
/toy-models/tonka-blue/
and changes it to
/toys/tonka/
The base urls are always "/toymodels/" followed by one word, and a hyphen, and everything after the hyphen can be discarded.
So it's to search for the pattern:
"/toymodels/"<one word for a toy type><a hyphen><some stuff to discard>
and replace with
"/toys/"<the toy type found above>"/"
Any help?
I need a pattern that matches something like
/toy-models/tonka-blue/
and changes it to
/toys/tonka/
The base urls are always "/toymodels/" followed by one word, and a hyphen, and everything after the hyphen can be discarded.
So it's to search for the pattern:
"/toymodels/"<one word for a toy type><a hyphen><some stuff to discard>
and replace with
"/toys/"<the toy type found above>"/"
Any help?