An regular expression for float point numbers
[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?
This should do the job.Labels: javascript, regexp, regular expression
The future of the web. The health of the web.
[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?
This should do the job.Labels: javascript, regexp, regular expression
0 Comments:
Post a Comment
<< Home