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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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