用正则表达式或其他的方法,都可以····``

解决方案 »

  1.   

    string s = "asdf32rd34d";
    s = Regex.Replace(s, @"[\d]+", "");
      

  2.   

                string s="sdfdsfsd43534435";
                string sNew=System.Text.RegularExpressions.Regex.Replace(s,"\\d","");
      

  3.   

    string   yourStr   =   ............; 
    string   resutlStr   =   Regex.Replace(yourStr,   @"\d",   ""); 
      

  4.   


                string s="sdfdsfsd43534435";
                string sNew=System.Text.RegularExpressions.Regex.Replace(s,"\\d","");
                //to:bbb[code=c# 这个c必须大写?] 
      

  5.   

    string s="sdfdsfsd43534435";
                string sNew=System.Text.RegularExpressions.Regex.Replace(s,"\\d","");这样就哦了
      

  6.   

    string s = "abcd123efg";
            s = Regex.Replace(s, @"\D", "");
            Response.Write(s);
      

  7.   

    string s = "字符串"; 
    s = s.Replace(s, @"[\d]+", "");