String.replace is broken

I think this has been reported before, but String.replace() is broken.

Example:

var z = " hello ";
var zz = z.replace(/e/gi, "!");
// zz remains unchanged, should be " h!llo "

I guess it relates to the various Regex incompatibilities CK has mentioned…

Thank you for the report. This issue was logged as 51051 and is already fixed