D-Programming-Language/phobos — pull request #754 by mylodon (2012-08-20 21:42:45+00:00)
Title: std.metastrings proposal: Replace

I have found this template to be very useful in string mixin generation, and its functionality is not quite represented in std.metastrings.

Format is pretty close, but it doesn't handle the case 'replace 1 thing many times' very well.

Also, my Replace seems to be much more robust against recursive expansion (cf issue 6471)