Regex on redir - solved?

I’m planning to try this today:

First: Have a series of rewrite rules which will not only rewrite the urls into the required format, but also add an identifier (prefix) at the beginning to show that it needs to be redirected later.

Then a redir block to catch all the rewritten requests and implement a redir on them, while stripping them of the prefix. I am using your solution from Redirect with if statements based on value

There’s also a second approach that I’m not sure of.

Do something like this:

redir {
if {path} matches ^/(.*)/blah(.*)/shoo
to /{2}/{1} 
}