Edit in JSFiddle

 

var str = "{abc} Replace any word or special charater in this string like {abc}";

str  = str.replace(new RegExp("{abc}", 'g'),"String Replaced");

alert(str);