A text field contains mathematical expressions like: 12+45-6 Is possible to convert this string to a number?
12+45-6
Can we use the predicate facility?
One solution that doesn't rely on external libraries is to first convert the string into a sequence of tokens, then evaluate the expression using the shunting-yard algorithm chained onto a simple stack machine.