Apache regex redirect needed

Job ID: 33435993

Budget: $15 – $20 AUD

expert needed to create the following redirect:

$host/category/{{NUMBER}}/anything -> $host/?redirectid={{NUMBER}}&type=category
EG: sitename.com/lifestyle/12345/some-text-string -> sitename.com/?redirectid=12345&type=lifestyle

I need this done by Yesterday :) Please only bid if you can deliver in a few minutes or so.

Thank you
Related categories: Linux Apache