Skip to content

Regular Expression to validate decimal number

Prathap

Asked Sep 23, 2015, 2:52 AM EDT1 answer
Share
LinkedInX
how to validate a textbox using regex
must allow only one dot. (eg: 25.50)
do not accept if value contains only zero. (eg: 00.00) 
must allow only 3 digits after dot. (eg: 25.500) 
do not allow white space or any other special characters .

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.