I need to check if a mathematical expression contains a exponential value and then replace the exponential value with decimal value.
Input :"10993.657030812325*8.20681165367255E-05"
Output :"10993.657030812325*0.0000820681165367255"
The complexity I am facing is to detect it inside a mathematical expression.
The regular expression that detects a regular expression i have is:
(([1-9][0-9]*\.?[0-9]*)|(\.[0-9]+))([Ee][+-]?[0-9]+)?
However that matches true for the entire expression, is there direct way to solve this or do i have to break it down and check individually.
Providing, that exponent is not too large (less than 99) you can use this code:
The result is "10993.6570308123*0.0000820681165367255"