Regex

Why this regex is not working.

var str = “abcde”;
var res = str.replace(/abc/i, “xyz”);

Please help!!

This is absolutely nothing to do with OpenGL.