求一格正则表达式
我需要一个正则表达式 
 可以输入数字,小数点,逗号   
 如果输入其他的,比如字母或者其他的字符自动替换为空   
------解决方案--------------------这样?   
         private void textBox1_TextChanged(object sender, EventArgs e) 
         { 
             textBox1.Text = Regex.Replace(textBox1.Text, @ "[^0-9,\.] ",  " "); 
         }
------解决方案--------------------可以输入数字,小数点,逗号 
 ^(,)|(\d)|(.)$ 
------解决方案--------------------server: 
    str = Regex.Replace(str, @ "[^\d,.] ",  " "); 
 javascript: 
    this.value=this.value.replace(/[^\d.,]/g, " ");