Some of what you want to do will, I believe take a scripting function that doesn't exist yet, but is planned.
As I understand the capabilities, you can put chunks of the find into replace, but you can't change them.
However, you don't have to do everything in one super regex. It can be safer to figure out what you want to do in chunks and check the result at each stage.
|