正则表达式去掉一段字符串中的所有"-"!谢谢大家![解决办法]好像不用正则。。 string str = "1111-333-444444 "; str = str.Replace( "- ", " "); [解决办法] "1111-333-444444 ".replace(/\-/g, " ")