I am looking to replace a part of a url with another part. For example
https://www.test.com/part1/a/b/c to https://www.test.com/part2/a/b/c OR
https://www.test.com/part1/part2/a/b to https://www.test.com/part3/part4/a/b
I basically want to be able to perform a find/replace on any part of a url. This will be used for a mass redirect in my custom route handler. The overall goal is to set this up via an admin page to do some custom routing.