Solved

Regular Expression for a float

Posted on 2006-07-11
6
4,282 Views
Last Modified: 2012-08-13
What is the regular expression of a float greater then 0.0 and non-negative?
0
Comment
Question by:aurionpro
  • 2
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
pradeepsudharsan earned 250 total points
Comment Utility
[0-9]+\.[0-9]*
0
 
LVL 7

Expert Comment

by:pradeepsudharsan
Comment Utility
/^((\d+(\.\d*)?)|((\d*\.)?\d+))$/
0
 
LVL 17

Assisted Solution

by:lem2802
lem2802 earned 250 total points
Comment Utility
[0-9]+[\.]*[0-9]*
0
 
LVL 17

Expert Comment

by:lem2802
Comment Utility
and if you need the number to be greater than 0.0 use a compare validator
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now