Possible Duplicate:
How to replace several words in javascript
I have a string:
var str = "1000 g teerts smarg 700 vickenbauer 400";
I need to replace teerts
, vickenbauer
by white spaces.
I can do like:
str.replace("teerts", "");
str.replace("vickenbauer", "");
But, is there any way to bind the two into just one line?