//從字串中取得英文字母A到Z及小寫字母a到z
string Showletters = Regex.Replace(Input,@"[^A-Z,a-z]", String.Empty);
//從字串中刪掉英文字母A到Z及小寫字母a到z
string EraseLetters = Regex.Replace(Input,@"[A-Z,a-z]", String.Empty);
//從字串中取得數字0到9
string ShowNumbers = Regex.Replace(Input,@"[^0-9]", String.Empty);
//或
string ShowNumbers = Regex.Replace(Input,@"[^\d]", String.Empty);
//從字串中刪掉數字0到9
string EraseNumbers = Regex.Replace(Input,@"[0-9]", String.Empty);