I have the following code:
text = 'check this regex<placeholder>, it will do what you want';
result = text.replace('<placeholder>', ' `^sql$`');
console.log(result);
As you can see, the result is
check this regex `^sqlcheck this regex, it will do what you want
when i would expect it to be
check this regex `^sql$`, it will do what you want
Why is this happening? and... how can I fix it?