Example Resulting value of x
var y = "abcdeCD";
var regexp = /cd/ig;
var x = y.match(regexp);
cd,CD