摘要:
private string pattern = @"^[0-9]*$"; private string param = ""; private void textBox1_TextChanged(object sender, TextChangedEventArgs e) { Match m = Regex.Match(this.textBox1.Text, pattern); if (!m.Success) { this.textBox1.Text ... 阅读全文