Mi puoi indicare semplicemente la funzione da adoperare??
Grazie
Edit: è questo?
To do a search and replace with regexes, use the string's replace() method: myString.replace(/replaceme/g, "replacement"). Using the /g modifier makes sure that all occurrences of "replaceme" are replaced. The second parameter is an normal string with the replacement text.
Anche se non ho ben capito come funziona!