Regex reg1 = new Regex(@"[0-9]+\.?[0-9]*$"); //@"[0-9]+\.?[0-9]*$"bool boo= reg1.IsMatch(txtArea.Text.ToString());