var stringa="ci sono n_prodotti nel tuo carrello e hai speso n_euro per acquistare un accendino"
var risultato=stringa.replace(/n_(\S+)/g, "\"&go(\"n_$1\")&\"")
alert(risultato)
ciao
var stringa="ci sono n_prodotti nel tuo carrello e hai speso n_euro per acquistare un accendino"
var risultato=stringa.replace(/n_(\S+)/g, "\"&go(\"n_$1\")&\"")
alert(risultato)
ciao