As an extra, you can use it to calculate the value of the expression, though, if it parses, you can most likely safely use eval — it depends on what you accept as input.
In reply to Re: how would you detect a math expression
by bart
in thread how would you detect a math expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |