string n1 = Regex.Replace(string, @"\d", "");//過濾掉數字,留下非數字
string n2 = Regex.Replace(string, @"[^\d]*", "");//留下數字
過濾其他內容可參考:
https://www.cnblogs.com/roboot/p/4780370.html
string n1 = Regex.Replace(string, @"\d", "");//過濾掉數字,留下非數字
string n2 = Regex.Replace(string, @"[^\d]*", "");//留下數字
過濾其他內容可參考:
https://www.cnblogs.com/roboot/p/4780370.html
this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
public partial class MyMessageBox : Window { public static void Show(string strErrorInfo) {