求个正则表达式,将" "轮换为空字符串

求个正则表达式,将 替换为空字符串?我要用js的replace方法将字符串中的 全部替换为空字符串str.replace(

求个正则表达式,将" "替换为空字符串?
我要用js的replace方法将字符串中的 全部替换为空字符串
str.replace(?, " ")。

[解决办法]
<script language="javascript">
var test="this &nbsp; is &nbsp; a test";
test=test.replace(/&nbsp;/ig, "");
alert(test);
</script>