forked from: regular expression bug @ String.replace(RegExp, function(){});

