Scientific notation support for onMath

The number regex now consumes entire numbers at once, including ones using scientific notation (e.g. 3e12) which were previously not recognized.