Regex ReplaceAll

http://stackoverflow.com/questions/10282991/how-to-replace-all-in-a-js-string

JavaScript

// initial string
var str = "AAAbbbAAAccc";

// replace here
str = ("foo\\\"bar\\\"foo").replace(/\\"/g,'"');
alert(str);