Parsing scientific notation sensibly?
Google on “scientific notation regexp” shows a number of matches, including this one (don’t use it!!!!) which uses *** warning: questionable *** /[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/ which includes cases such as -.5e7 and +00000e33 (both of which you may not want to allow). Instead, I would highly recommend you use the syntax on Doug Crockford’s JSON website which … Read more