I have an array of string that contains arithmetic operators and I would like to replace those arithmetic operators in the array with a new arithmetic operator.
For instance:
var equation = '5.0 + 9.34 - 6.0 * 2.1 * 3.1 / 2.0';
var newEquation = equation.replace(/+-*//, '+');
However, it does not change to the wanted result. Please advise. Your contribution is much appreciated.
