D-Programming-Language/phobos — pull request #1195 by blackwhale (2013-03-10 17:05:54+00:00)
Title: Fix std.regex.replace signature and constraints

* Remove code bloat by instantiating once per *character* type.

* Allow any qualifiers by taking const.

*The function essentially builds its input internally and thus produces mutable result.

I'm not sure if that last bit could cause any trouble for any existing code.