So to achieve this, I use the find/replace below. You can see that I have to escape a number of characters in the FIND and I’m matching the command name with (.*). The () wrap each tagged expression, not { } like all the documentation says. In the bottom, I just reference the result by saying $1 for the first tagged expression (not \1 like msdn says).

I’ve been using this tool for some time on a number of projects. SlowCheetah allows you to transform your config files at build time based on the build type. So when you do a Debug build, you can include values that are meant for your dev environment, while at the same time doing a Release build will use values meant for production.