  | 
                
                    [C#][字串](note)字串函數(1) - 無商不雅- 點部落
                    string a =DropDownList1.SelectedItem.ToString(); Regex r = new Regex("[a-zA-Z]"); TextBox3.Text = r.Replace(a,""); 取字串後面想要的字(從右側開始取字串) string name =DropDownList1.SelectedItem.ToString(); name.Substring(name.Length - 3); //取 ... 
                    www.dotblogs.com.tw  | 
                  |