It is more like interactive editor macros where you can see the intermediate results on the fly.
The advantage over search-and-replace is that you get to work with a nice, familiar language (the interactive commands you send to your editor) rather than using regex.