I have an array of operators [*, -, +, %]
and another array for variables [FE, GE, PRD, RON]
. In an input text, the user with both arrays can create formulas that is, FE + GE * RON for example.
How can I validate that the formula is well armed with operators and variables of both arrangements?
If someone has a suggestion it can be with JavaScript or C #
Beforehand, thank you very much