^\d*(.\d{2})?$
if(!Regex.IsMatch(textBox1.Text,@"^[0-9]{0,3}.?[0-9]{2}$")) { // Error Message } else { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)