using System.Text.RegularExpressions; ...... bool yn=Regex.IsMatch(textBox1.Text,@"^\d+$"); 如果textBox1.Text是一个数字串,yn返回ture,否则为false. :)
using System.Text.RegularExpressions; ...... bool yn=Regex.IsMatch(textBox1.Text,@"^\d+$"); 如果textBox1.Text是一个数字串,yn返回ture,否则为false. :)
Match m=r.Match(content.Text);
if(m.Success)
{
}