Fixed parsing of many scientific notation floats

Changed the regex for e, E, g and G so that the group that matches the
exponent is not captured. Also added a unit test that catches this bug.