Regex reg1 = new Regex(@"[0-9]+\.?[0-9]*$"); //@"[0-9]+\.?[0-9]*$"
bool boo= reg1.IsMatch(txtArea.Text.ToString());
转载于:https://www.cnblogs.com/jsping/archive/2012/06/25/2562707.html
Regex reg1 = new Regex(@"[0-9]+\.?[0-9]*$"); //@"[0-9]+\.?[0-9]*$"
bool boo= reg1.IsMatch(txtArea.Text.ToString());
转载于:https://www.cnblogs.com/jsping/archive/2012/06/25/2562707.html