My problem involves replacing occurrences of the string ],[
with ]@[
I've attempted different methods but haven't found a successful solution.
var find = '],[';
var regex = new RegExp(find, "g");
mytext.replace(regex, ']@[')
This approach doesn't seem to be working for me.
mytext = mytext.replace(/],[/g,']@[');
Even this alternative method is failing to produce the desired result.
Can anyone offer guidance on where I might be making mistakes?