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
Post a Comment