java - Number verification - if it is number, eponential values, it should pass otherwise it should fail -


i using ^[-+]?[0-9]*\\.?[0-9]+([ee][-+]?[0-9]+)?$ regular expression, working fine cases. values 123e104 failing validate.

i guess 123e104 not exponential value. since 123e104 invalid exponential value. result should false or not match

123e+104 common way javascript , languages denote string representation of large exponent.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

collision detection - C++ library for mesh to mesh intersection: what is available? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -