A regular expression for a calculated fields form could be:
/(?:\d+(?:\.\d+)?)(?:[+\-*/])(?:\d+(?:\.\d+)?)/
This regular expression pattern matches any numerical expression consisting of two numbers separated by a mathematical operator (+, -, *, /). The numbers can be integers or floating-point numbers.