Regular Expression for a float

What is the regular expression of a float greater then 0.0 and non-negative?
aurionproAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
pradeepsudharsanConnect With a Mentor Commented:
[0-9]+\.[0-9]*
0
 
pradeepsudharsanCommented:
/^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
0
 
Elvio LujanConnect With a Mentor .Net Senior DeveloperCommented:
[0-9]+[\.]*[0-9]*
0
 
Elvio Lujan.Net Senior DeveloperCommented:
and if you need the number to be greater than 0.0 use a compare validator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.