“Paul Puala Pualine paul Paul” 把所有Paul替换成Ringo
var str = “Paul Puala Pualine paul Paul”; var txt = str.replace(/Paul/g,"Ringo");