I think it is even not enough for a complete solution, as each sub-expression
is calculated by itself ex
"1 + 3/5" should give 1.6 your solution return 1.0 eval("1.0 + 3/5")intermediate expression : "A + b / 5 + 7 * 6" a "brute force" You/I can also imagine some tricky expression like : "a + MyClass.elements[ 5/b ] + math.sin( 5 ) + ( 45 % 6 & 25 )" For such complicated stuff regex should not be enough.
