i'm trying to replace '$$$' with space using JavaScript. simple as that.
I have the following code:
var splitSign = '$$$';
var string = 'hello$$$how$$$are$$$you';
var regex = new RegExp(splitSign,'g');
var res = string.replace(regex,' ');
console.info(res);
the result is the string not modified! any ideas why ?