After reading about and trying regular expressions for hours now I believe it's time to ask for some help..
We recently migrated a fairly large website by importing old articles into another CMS and new database. The URL structure is quite different.
The way the old URL was structured is http://wwww.myurl.com/categoryOLD/article_12345.fixed/this_is_the_title.html
the part that says /article_12345.fixed/ is something that exists in all the old URL's just as the .html part at the end. 12345 is the ID of the entry an is different for every URL. I believe we can use this to identify the URLs that need rewriting.
The old URL needs to be rewritten to http://wwww.myurl.com/categoryNEW/this-is-the-title
So the /article_12345.fix/ is gone, the old category is rewritten to a new category, the .html at the end is gone and the underscores need to become hyphens.
I have been reading and trying but I can't even get the RewriteCond to match. Is there anyone out there that dreams in regular expressions and can help me out here?