That's not very difficult to do with a script of some sort (though I really wish dmd could take a file from stdin to avoid the intermediate file) I don't have one off the top of my head, but a regexp could probably do it well enough.