I want to validate mathematical expressions using regular expression. The mathematical expression can be this
It can be blank means nothing is entered
Something like this should work:
^([-+/*]\d+(\.\d+)?)*
Regexr Demo
^
[-+/*]
\d+
(\.\d+)?
()*