string s = Regex.Replace("苏A-B3432","^[A-Z]+\d+","");

解决方案 »

  1.   

    string strContent="A_B3432";
    strContent=Regex.Replace(strContent, @"\d+","");
    MessageBox.Show(strContent);
      

  2.   

    string text = "A_B3432";
    string Pattern = @"\D+" ; MatchCollection MatchCol = Regex.Matches(text,Pattern);
    for(int i=0;i<MatchCol.Count;i++)
    {

       MessageBox.Show(MatchCol[i].ToString());
    }
      

  3.   

    string str = "A_B3432";
    string Pattern = "\\D+" ;
    MatchCollection MatchCol = Regex.Matches(str,Pattern);
      

  4.   

    Regex r = new Regex(@"\D+");for(int i=0;i<n;i++)
    {
        Match m=r.Match(str[i]);
        if( m.Success )
        { 
            MessageBox.Show("ok");
        }
        else
        {
            MessageBox.Show("no");
        }
    }