This works so well, just having a regex crash if using sin/cos/tan/"x" in the formula