摘要:
一、正则表达式 //首先引用命名空间using System.Text.RegularExpressions;string s= TextBox1.Text.Trim();Regex reg = new Regex("^[0-9]+$");Match ma = reg.Match(s);if(ma.... 阅读全文
摘要:
一、正则表达式 //首先引用命名空间using System.Text.RegularExpressions;string s= TextBox1.Text.Trim();Regex reg = new Regex("^[0-9]+$");Match ma = reg.Match(s);if(ma.... 阅读全文
|